def skip_op_by_type(
    op: proto.MIL_pb2.Operation,
    op_types: Iterable[str] = {
        "expand_dims",
        "reshape",
        "reshape_like",
        "squeeze",
        "transpose",
        "slice_by_index",
        "slice_by_size",
        "shape",
        "split",
        "stack",
        "concat",
        "fill",
        "const",
        "compression.constexpr_blockwise_shift_scale",
        "constexpr_lut_to_dense",
        "constexpr_sparse_to_dense",
        "constexpr_lut_to_sparse",
        "constexpr_affine_dequantize",
        "constexpr_cast",
        "cast",
    },
) -> bool:
    """
    Determines if an operation should be skipped based on its type.
    """
    return op.type in op_types

    Determines if an operation should be skipped based on its type.
    
coremltools/models/ml_program/experimental/debugging_utils.py