code: def testIsValidEvent_Type(self):
      self.assertTrue(
          event_lib.is_valid_input_event(Event(type="INPUT"))
      )
      self.assertTrue(
          event_lib.is_valid_input_event(Event(type="DECLARED_INPUT"))
      )
      self.assertTrue(
          event_lib.is_valid_input_event(Event(type="INTERNAL_INPUT"))
      )
      self.assertFalse(
          event_lib.is_valid_input_event(Event(type="OUTPUT"))
      )
      self.assertFalse(
          event_lib.is_valid_input_event(Event(type="DECLARED_OUTPUT"))
      )
      self.assertFalse(
          event_lib.is_valid_input_event(Event(type="INTERNAL_OUTPUT"))
      )
  
      self.assertFalse(
          event_lib.is_valid_output_event(Event(type="INPUT"))
      )
      self.assertFalse(
          event_lib.is_valid_output_event(Event(type="DECLARED_INPUT"))
      )
      self.assertFalse(
          event_lib.is_valid_output_event(Event(type="INTERNAL_INPUT"))
      )
      self.assertTrue(
          event_lib.is_valid_output_event(Event(type="OUTPUT"))
      )
      self.assertTrue(
          event_lib.is_valid_output_event(Event(type="DECLARED_OUTPUT"))
      )
      self.assertTrue(
          event_lib.is_valid_output_event(Event(type="INTERNAL_OUTPUT"))
      )
  
imports: import itertools
  from absl.testing import parameterized
  import tensorflow
  from tfx.orchestration.portable.mlmd import event_lib
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling the EventLibTest obj's underlying member method code with example usage: obj.testIsValidEvent_Type() without return types