code: def test_remove_passes(self):
      pipeline = PassPipeline.EMPTY
      pipeline.passes = [
          "common::noop_elimination",
          "common::merge_consecutive_reshapes",
          "common::noop_elimination",
          "common::merge_consecutive_relus",
      ]
      pipeline.remove_passes(passes_names=["common::noop_elimination"])
      assert pipeline.passes == [
          "common::merge_consecutive_reshapes",
          "common::merge_consecutive_relus",
      ]
      pipeline.remove_pass(index=1)
      assert pipeline.passes == ["common::merge_consecutive_reshapes"]
  
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 4 for calling the TestPassPipeline obj's underlying member method code with example usage: obj.test_remove_passes() without return types