code: def testCustomNestTraceTypeSubtype(self):
      trace_components1 = (Mock2AsTopType(1), Mock2AsTopType(1))
      t1 = custom_nest_trace_type.CustomNestTraceType(
          MaskedValuePair, (True,), trace_components1
      )
  
      trace_components2 = (Mock2AsTopType(2), Mock2AsTopType(2))
      t2 = custom_nest_trace_type.CustomNestTraceType(
          MaskedValuePair, (True,), trace_components2
      )
      self.assertTrue(t1.is_subtype_of(t2))
      self.assertFalse(t2.is_subtype_of(t1))
  
      trace_components3 = (Mock2AsTopType(2), Mock2AsTopType(2))
      t4 = custom_nest_trace_type.CustomNestTraceType(
          MaskedValuePair, (True,), trace_components3
      )
      self.assertTrue(t2.is_subtype_of(t4))
      self.assertTrue(t4.is_subtype_of(t2))
  
      trace_components4 = (Mock2AsTopType(1), Mock2AsTopType(2))
      t4 = custom_nest_trace_type.CustomNestTraceType(
          MaskedValuePair, (True,), trace_components4
      )
      self.assertFalse(t1.is_subtype_of(t4))
      self.assertFalse(t4.is_subtype_of(t1))
  
imports: import dataclasses
  from typing import Any
  from tensorflow.core.function.trace_type import custom_nest_trace_type
  from tensorflow.core.function.trace_type import default_types
  from tensorflow.python.platform import test
  from tensorflow.python.types import trace
label_desc: Use image node_id 3 for calling the CustomNestTraceTypeTest obj's underlying member method code with example usage: obj.testCustomNestTraceTypeSubtype() without return types