class_docstr: A graph optimization pass on PyMIL to detect and fuse several variants of ``layer_norm`` or
  ``instance_norm``. Pattern 1 corresponds to either ``layer_norm`` or ``instance_norm``. Patterns 2-4
  are ``instance_norm``. Pattern 5 is ``layer_norm``. You can find these patterns in the methods for
  this class in the source code. To quickly view the source code, click the **[source]** button at
  the end of the class definition.
docstr: Returns ``True`` for child op types matching ``child_op_types``, otherwise returns ``False``.
  
          Parameters
          ----------
  
  param op : Current op.
  
  param child_op_type : Expected child op type.
  
  param check_order : Ensure child in given order, defaults to ``True``.
docstr_tok: ["Returns","``","True","``","for","child","op","types","matching","``","child_op_types","``",",","otherwise","returns","``","False","``",".","Parameters","--","--","--","--","--","param","op",":","Current","op",".","param","child_op_type",":","Expected","child","op","type",".","param","check_order",":","Ensure","child","in","given","order",",","defaults","to","``","True","``","."]
code: def _check_child_op_types(
      op: Operation, child_op_types: List[str], check_order: bool = True
  ) -> bool:
      """
      Returns ``True`` for child op types matching ``child_op_types``, otherwise returns ``False``.
  
              Parameters
              ----------
  
      param op : Current op.
  
      param child_op_type : Expected child op type.
  
      param check_order : Ensure child in given order, defaults to ``True``.
      """
      if op is None or len(op.outputs) != 1:
          return False
      child_ops = list(op.outputs[0].child_ops)
      if len(child_ops) != len(child_op_types):
          return False
      ops_types = [c.op_type for c in child_ops]
      if check_order is False:
          ops_types = sorted(ops_types)
          child_op_types = sorted(child_op_types)
      return ops_types == child_op_types
  
imports: from typing import List, Optional
  import numpy
  from coremltools import _logger
  from coremltools.converters.mil.mil import Block
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Operation, Program, Var
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
  from coremltools.converters.mil.mil.passes.helper import _check_no_output_connection, block_context_manager
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 3 for calling the fuse_layernorm_or_instancenorm obj's underlying member method code with example usage: obj._check_child_op_types(op, child_op_types, check_order) and returns: unknown, False, False