code: def common_pass(prog):
      passes = [
          "common::const_elimination",
          "common::divide_to_multiply",
          "common::const_elimination",
          "common::loop_invariant_elimination",
          "common::remove_symbolic_reshape",
          "common::noop_elimination",
          "common::fuse_matmul_weight_bias",
          "common::fuse_gelu_tanh_approximation",
          "common::reduce_transposes",
          "common::fuse_bias_conv",
          "common::fuse_elementwise_to_batchnorm",
          "common::fuse_onehot_matmul_to_gather",
          "common::fuse_layernorm_or_instancenorm",  # should come after reduce_transposes, to detect instance_norm
          "common::dead_code_elimination",  # always end with dce
      ]
  
      _logging.debug("Program before common passes:\n{}".format(prog))
  
      prog.validate()
      for p in _tqdm(
          passes, desc="Running MIL optimization passes", unit=" passes"
      ):
          _logging.info('Performing pass: "{}"'.format(p))
          PASS_REGISTRY[p](prog)
          prog.validate()
  
      _logging.debug("Program after common passes:\n{}".format(prog))
  
imports: from coremltools.converters.mil.mil.passes.pass_registry import PASS_REGISTRY
  import logging
  from coremltools.converters._profile_utils import _profile
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: common_pass(prog) without return types