def set_options_by_another_pipeline(self, other_pipeline: PassPipeline):
        """
        Convenience method for setting options from another pipeline's options.
        For each option in other_pipeline, set it if it's also applicable to this pipeline.
        """
        for pass_name, options in other_pipeline.get_all_options().items():
            if pass_name in self.passes:
                self._pass_options[pass_name] = options

        Convenience method for setting options from another pipeline's options.
        For each option in other_pipeline, set it if it's also applicable to this pipeline.
        
coremltools/converters/mil/mil/passes/pass_pipeline.py