code: def simplify_model(mod):
      """
      Simplify execution graph
  
      At least merge BatchNorm into convolution. For this purpose decompose BN primitive
      into simple operation which can be calculated as const expr and after that merged
      into nearest conv/dense primitive.
      """
      seq = tvm.transform.Sequential(
          [
              transform.InferType(),
              transform.FoldConstant(),
              transform.SimplifyInference(),
              transform.FoldScaleAxis(),
          ]
      )
      return seq(mod)
  
file_path: tvm/tests/python/contrib/test_bnns/test_onnx_topologies.py
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay import transform
  from tvm.contrib import utils, graph_executor
  from tvm.contrib.download import download_testdata
  from tvm.relay.op.contrib.bnns import partition_for_bnns
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: simplify_model(mod) and returns: seq