ABI.TypeEncoder.encode

You're seeing just the function encode, go back to ABI.TypeEncoder module for more information.
Link to this function

encode(data, selector_or_types, data_type \\ :input)

Encodes the given data based on the function selector.