parameters: (module)
return_statement: return decorator
docstring: Decorator for overriding __module__ on a function or class.
  
      Example usage::
  
          @set_module('numpy')
          def example():
              pass
  
          assert example.__module__ == 'numpy'
docstring_summary: Decorator for overriding __module__ on a function or class.
docstring_tokens: Decorator for overriding __module__ on a function or class .
function: def set_module(module):
      """Decorator for overriding __module__ on a function or class.
  
      Example usage::
  
          @set_module('numpy')
          def example():
              pass
  
          assert example.__module__ == 'numpy'
      """
      def decorator(func):
          if module is not None:
              func.__module__ = module
          return func
      return decorator
function_tokens: def set_module ( module ) : def decorator ( func ) : if module is not None : func . __module__ = module return func return decorator