Please use the `types` module to get the function type: `types.FunctionType`