code: def method_name(method):
      """Return a method's name.
  
      This function returns the name the method is accessed by from
      outside the class (i.e. it prefixes "private" methods appropriately).
      """
      mname = name(method)
      if is_class_private_name(mname):
          mname = "_%s%s" % (name(method.__self__.__class__), mname)
      return mname
  
file_path: wandb/wandb/vendor/watchdog_0_9_0/wandb_watchdog/utils/echo.py
imports: import inspect
  import sys
label_desc: Use image node_id 5 for calling a global function with example usage: method_name(method) and returns: mname