code: def class_method_name_scope(method):
      """
      Decorator that wraps any method with the name score that has the
      same name as a method.
      """
  
      @wraps(method)
      def wrapper(self, *args, **kwargs):
          with tf.name_scope(self.__class__.__name__):
              if hasattr(method, "__self__"):  # check if method bounded
                  return method(*args, **kwargs)
              return method(self, *args, **kwargs)
  
      wrapper.original_method = method
      return wrapper
  
file_path: neupy/neupy/utils/tf_utils.py
imports: from functools import wraps
  import numpy
  import tensorflow
  from neupy.utils.misc import as_tuple
  from neupy.utils.processing import asfloat
label_desc: Use image node_id 5 for calling a global function with example usage: class_method_name_scope(method) and returns: wrapper, method, method