code: def _check_child_op_type(op, child_op_type):
      """
      :param op: operation
      :param child_op_type: str
      :return: Return True if op has 1 child and type of that child matches child_op_type
      """
      if len(op.outputs) != 1:
          return False
      child_ops = list(op.outputs[0].child_ops)
      if len(child_ops) != 1:
          return False
      if child_ops[0].op_type == child_op_type:
          return True
      return False
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/mil/passes/layernorm_instancenorm_pattern_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: _check_child_op_type(op, child_op_type) and returns: False, False, False, True