Many appear the same. There is often a metal or synthetic tag with number on it. Some have it etched on a flat spot. Plus some have added data stamped at or near the end of the output shaft housing.
Just curious what model year Impala and which engine you are looking to match?
Wikipedia has a long thread for GM and CHEV transmissions. Hang on . . .
Here's that Impala wiki so you can choose your actual model year:
Notice each section shows engine and transmission (example image below). Tap the transmission for the matching engine. That takes you where you want to be.
Notice transmission options. Use those numbers to fuel your on-line search criteria for IMAGES.