Typescript Get Type From Function In Python Exercise