def test_int16_no_effect(self):
        """After patching the pass, no op should be cast to int16"""

        @mb.program(
            input_specs=[mb.TensorSpec(shape=(2, 3)), mb.TensorSpec(shape=(2,), dtype=types.int32)],
            opset_version=ct.target.iOS17,
        )
        def prog(x, indices):
            return mb.gather(x=x, indices=indices, axis=0)

        prev_prog, _, block = apply_pass_and_basic_check(prog, "common::add_int16_cast")
        assert get_op_types_in_program(prog) == get_op_types_in_program(prev_prog)
After patching the pass, no op should be cast to int16
coremltools/converters/mil/mil/passes/tests/test_quantization_passes.py