code: def test_to_bool_specialization_user_type(self):
      class H:
          pass
  
      self._assign_valid_version_or_skip(H)
  
      def to_bool_1(instance):
          not instance
  
      self._check_specialization(
          to_bool_1, H(), "TO_BOOL", should_specialize=True
      )
      del to_bool_1
  
      self._assign_and_check_version_0(H)
  
      def to_bool_2(instance):
          not instance
  
      self._check_specialization(
          to_bool_2, H(), "TO_BOOL", should_specialize=False
      )
  
imports: import unittest
  import dis
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 11 for calling the TypeCacheWithSpecializationTests obj's underlying member method code with example usage: obj.test_to_bool_specialization_user_type() without return types