code: def is_class_method(f):
      """Returns whether the given method is a class_method."""
      return hasattr(f, "__self__") and f.__self__ is not None
  
imports: import inspect
label_desc: Use image node_id 3 for calling a global function with example usage: is_class_method(f) and returns: unknown