code: def set_module(module):
      """Private 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
  
imports: import functools
  import warnings
  from ._convertions import asunicode, asbytes
label_desc: Use image node_id 1 for calling a global function with example usage: set_module(module) and returns: decorator, func