The name of the module in which a class or function was defined.
builtins/definition.__module__
definition.__module__