code: def testMissingSchemaFile(self):
      executor = _executor.Executor()
  
      with self.assertRaisesRegex(
          ValueError, "Schema file path is missing"
      ):
          executor.Do({}, self.output_dict, {})
  
      # Underlying filesystem may emit different errors for files not found.
      with self.assertRaises((tf.errors.NotFoundError, IOError)):
          executor.Do(
              {},
              self.output_dict,
              {
                  standard_component_specs.SCHEMA_FILE_KEY: "invalid_path"
              },
          )
  
      # If the given file is not a proper schema textproto. For example, Python?
      with self.assertRaises(text_format.ParseError):
          executor.Do(
              {},
              self.output_dict,
              {standard_component_specs.SCHEMA_FILE_KEY: __file__},
          )
  
file_path: tfx/tfx/components/schema_gen/import_schema_gen/executor_test.py
imports: import os
  import tensorflow
  from tfx.components.schema_gen import executor
  from tfx.components.schema_gen.import_schema_gen import executor
  from tfx.types import standard_artifacts
  from tfx.types import standard_component_specs
  from tfx.utils import io_utils
  from tfx.utils import test_case_utils
  from google.protobuf import text_format
label_desc: Use image node_id 2 for calling the ExecutorTest obj's underlying member method code with example usage: obj.testMissingSchemaFile() without return types