code: def test_getmethodclass(self):
      self.assertEqual(
          inspect_utils.getmethodclass(free_function), None
      )
      self.assertEqual(
          inspect_utils.getmethodclass(free_factory()), None
      )
  
      self.assertEqual(
          inspect_utils.getmethodclass(TestClass.member_function),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(TestClass.decorated_member),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(TestClass.fn_decorated_member),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(TestClass.wrap_decorated_member),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(TestClass.static_method),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(TestClass.class_method),
          TestClass,
      )
  
      test_obj = TestClass()
      self.assertEqual(
          inspect_utils.getmethodclass(test_obj.member_function),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(test_obj.decorated_member),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(test_obj.fn_decorated_member),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(test_obj.wrap_decorated_member),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(test_obj.static_method),
          TestClass,
      )
      self.assertEqual(
          inspect_utils.getmethodclass(test_obj.class_method), TestClass
      )
  
imports: import abc
  import collections
  import functools
  import textwrap
  import types
  from tensorflow.python import lib
  from tensorflow.python.autograph.pyct import inspect_utils
  from tensorflow.python.autograph.pyct.testing import basic_definitions
  from tensorflow.python.autograph.pyct.testing import decorators
  from tensorflow.python.framework import constant_op
  from tensorflow.python.platform import test
label_desc: Use image node_id 21 for calling the InspectUtilsTest obj's underlying member method code with example usage: obj.test_getmethodclass() without return types