code: def test_class_load_attr_specialization_user_type(self):
      class A:
          def foo(self):
              pass
  
      self._assign_valid_version_or_skip(A)
  
      def load_foo_1(type_):
          type_.foo
  
      self._check_specialization(
          load_foo_1, A, "LOAD_ATTR", should_specialize=True
      )
      del load_foo_1
  
      self._assign_and_check_version_0(A)
  
      def load_foo_2(type_):
          return type_.foo
  
      self._check_specialization(
          load_foo_2, A, "LOAD_ATTR", should_specialize=False
      )
  
imports: import unittest
  import dis
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 6 for calling the TypeCacheWithSpecializationTests obj's underlying member method code with example usage: obj.test_class_load_attr_specialization_user_type() and returns: type_