code: def test_set_pass_options_for_pass_not_in_pipeline(self):
      pipeline = PassPipeline.EMPTY
      pipeline.set_options(
          "common::add_fp16_cast", {"skip_ops_by_type": "matmul,const"}
      )
      with pytest.raises(
          ValueError,
          match="This pass pipeline is not valid. The pass common::add_fp16_cast "
          "has associated options but it's not in the passes.",
      ):
          pipeline.validate()
  
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 7 for calling the TestPassPipeline obj's underlying member method code with example usage: obj.test_set_pass_options_for_pass_not_in_pipeline() without return types