code: def _unit_transform_test(
      self,
      unit,
      input_instance,  # pylint:disable=g-unreachable-test-method
      expected_outputs,
  ):
      outputs = unit.transform(input_instance)
      self.assertIsInstance(outputs, list)
      common_testing_lib.assert_set_equality(
          self, expected_outputs, outputs
      )
      self.assertEqual(unit.input_type, type(input_instance))
      if outputs:
          self.assertEqual(unit.output_type, type(outputs[0]))
  
file_path: magenta/magenta/pipelines/pipelines_common_test.py
imports: import functools
  from absl.testing import absltest
  from magenta.common import testing_lib
  from magenta.pipelines import pipelines_common
label_desc: Use image node_id 1 for calling the PipelineUnitsCommonTest obj's underlying member method code with example usage: obj._unit_transform_test(unit, input_instance, expected_outputs) without return types