code: def test_bound_function_inside_classmethod(self):
      class A:
          def foo(self, cls):
              return "spam"
  
      class B:
          bar = classmethod(A().foo)
  
      self.assertEqual(B.bar(), "spam")
  
imports: import unittest
  from types import MethodType
label_desc: Use image node_id 14 for calling the TestDecorators obj's underlying member method code with example usage: obj.test_bound_function_inside_classmethod() and returns: str