code: def getdefiningclass(m, owner_class):
      """Resolves the class (e.g. one of the superclasses) that defined a method."""
      method_name = m.__name__
      for super_class in inspect.getmro(owner_class):
          if (
              hasattr(super_class, "__dict__")
              and method_name in super_class.__dict__
          ) or (
              hasattr(super_class, "__slots__")
              and method_name in super_class.__slots__
          ):
              return super_class
      return owner_class
  
file_path: tensorflow/tensorflow/python/autograph/pyct/inspect_utils.py
imports: import builtins
  import inspect
  import itertools
  import linecache
  import sys
  import threading
  import types
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 9 for calling a global function with example usage: getdefiningclass(m, owner_class) and returns: owner_class, super_class