code: def match_pattern(op):
      # abort if op output is a block output
      if op.outputs[0] in op.enclosing_block.outputs:
          return None
  
      if op.op_type in {
          "reshape",
          "split",
          "slice_by_index",
          "slice_by_size",
      }:
          input_shape = op.x.sym_type
          if len(op.outputs) != 1:
              return None
          output_shape = op.outputs[0].sym_type
  
          if input_shape != output_shape:
              return None
          return op_to_removal_fn[op.op_type]
  
      return None
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/passes/noop_elimination.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
  from coremltools.converters.mil.mil import Builder
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: match_pattern(op) and returns: None, None, op_to_removal_fn, None, None