def remove_passes(self, passes_names: Union[Set[Text], List[Text]]) -> None:
        """Removes all passes with specific name."""
        self._pass_names = [
            pass_name for pass_name in self._pass_names if pass_name not in passes_names
        ]
Removes all passes with specific name.
coremltools/converters/mil/mil/passes/pass_pipeline.py