code: def match_pattern(op):
      if op.outputs[0] in op.enclosing_block.outputs:
          return None
  
      if op.op_type == "mul":
          # find add
          child_ops = op.outputs[0].child_ops
          if len(child_ops) == 1:
              add_op_candidate = list(child_ops)[0]
              if add_op_candidate.op_type == "add":
                  return add_op_candidate
      return None
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/passes/elementwise_batchnorm_fusion.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 1 for calling a global function with example usage: match_pattern(op) and returns: None, None, add_op_candidate