code: def test_insert_invalid_pass(self):
      pipeline = PassPipeline.EMPTY
      with pytest.raises(
          ValueError, match="The pass test_pass is not registered."
      ):
          pipeline.append_pass("test_pass")
      with pytest.raises(
          ValueError, match="The pass test_pass is not registered."
      ):
          pipeline.insert_pass(0, "test_pass")
      with pytest.raises(
          ValueError, match="The pass invalid_pass is not registered."
      ):
          pipeline.passes = ["invalid_pass"]
  
file_path: coremltools/coremltools/converters/mil/mil/passes/tests/test_pass_pipeline.py
imports: import numpy
  import pytest
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil.passes.pass_pipeline import PassPipeline, PassPipelineManager
  from coremltools.converters.mil.testing_utils import assert_model_is_valid, get_op_types_in_program
label_desc: Use image node_id 3 for calling the TestPassPipeline obj's underlying member method code with example usage: obj.test_insert_invalid_pass() without return types