code: def named_call(f=None, name=None):
      """Adds a name to a function for profiling purposes."""
      if f is None:
          return functools.partial(named_call, name=name)
  
      if name is None:
          name = f.__name__
  
      @functools.wraps(f)
      def wrapped(*args, **kwargs):
          with tf.name_scope(name):
              return f(*args, **kwargs)
  
      return wrapped
  
imports: import functools
  import numpy
  import six
  import tensorflow.compat.v2
  from tensorflow.python.util import nest
label_desc: Use image node_id 21 for calling a global function with example usage: named_call(f, name) and returns: wrapped, functools, f