code: def build_module(
      mod, target, params=None, enable_bnns=True, tvm_ops=0
  ):
      """Build module with option to build for BNNS."""
      if isinstance(mod, tvm.relay.expr.Call):
          mod = tvm.IRModule.from_expr(mod)
      with tvm.transform.PassContext(opt_level=3):
          if enable_bnns:
              mod = partition_for_bnns(mod)
          relay.backend.te_compiler.get().clear()
          return relay.build(mod, target=target, params=params)
  
imports: from itertools import zip_longest, combinations
  import json
  import os
  import warnings
  import numpy
  import tvm
  from tvm import relay
  from tvm import rpc
  from tvm.contrib import graph_executor
  from tvm.relay.op.contrib.bnns import partition_for_bnns
  from tvm.contrib import utils
  from tvm.autotvm.measure import request_remote
  from tvm.relay.analysis import analysis
label_desc: Use image node_id 3 for calling a global function with example usage: build_module(mod, target, params, enable_bnns, tvm_ops) and returns: relay