code: def setUp(self):
      super(CapturesTest, self).setUp()
  
      def gen_type_fn(mapping):
          return function_type.FunctionType(
              [], collections.OrderedDict(mapping)
          )
  
      self.type_a1_b1 = gen_type_fn(
          {"a": trace_type.from_value(1), "b": trace_type.from_value(1)}
      )
      self.type_a1_b1_c1 = gen_type_fn(
          {
              "a": trace_type.from_value(1),
              "b": trace_type.from_value(1),
              "c": trace_type.from_value(1),
          }
      )
      self.type_a2_b2_c2 = gen_type_fn(
          {
              "a": trace_type.from_value(2),
              "b": trace_type.from_value(2),
              "c": trace_type.from_value(2),
          }
      )
      self.type_a1_b1_c2 = gen_type_fn(
          {
              "a": trace_type.from_value(1),
              "b": trace_type.from_value(1),
              "c": trace_type.from_value(2),
          }
      )
      self.type_d1 = gen_type_fn({"d": trace_type.from_value(1)})
  
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 1 for calling the CapturesTest obj's underlying member method code with example usage: obj.setUp() and returns: function_type