code: def test_partial_raises_error(self):
      foo_type = function_type.FunctionType(
          [
              function_type.Parameter(
                  "x",
                  function_type.Parameter.POSITIONAL_ONLY,
                  False,
                  trace_type.from_value(1),
              ),
          ]
      )
      bar_type = function_type.FunctionType(
          [
              function_type.Parameter(
                  "x",
                  function_type.Parameter.POSITIONAL_ONLY,
                  False,
                  None,
              )
          ]
      )
      self.assertNotEqual(foo_type, bar_type)
  
      with self.assertRaises(TypeError):
          foo_type.is_supertype_of(bar_type)
  
      with self.assertRaises(TypeError):
          bar_type.is_supertype_of(foo_type)
  
      with self.assertRaises(TypeError):
          foo_type.most_specific_common_subtype([bar_type, bar_type])
  
      with self.assertRaises(TypeError):
          bar_type.most_specific_common_subtype([foo_type, bar_type])
  
imports: import collections
  import pickle
  import platform
  from absl.testing import parameterized
  from tensorflow.core.function import trace_type
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.core.function.polymorphism import function_type_pb2
  from tensorflow.core.function.trace_type import serialization
  from tensorflow.python.framework import func_graph
  from tensorflow.python.platform import test
  from tensorflow.python.types import trace
label_desc: Use image node_id 3 for calling the TypeHierarchyTest obj's underlying member method code with example usage: obj.test_partial_raises_error() without return types