code: 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
  
file_path: catboost/contrib/python/numpy/py2/numpy/core/overrides.py
imports: import collections
  import functools
  import os
  from numpy.core._multiarray_umath import add_docstring, implement_array_function, _get_implementing_args
  from numpy.compat._inspect import getargspec
label_desc: Use image node_id 2 for calling a global function with example usage: set_module(module) and returns: decorator, func