code: def build_module(relay_mod, target):
      """builds a relay module for a specified target"""
      params = {}
      executor = Executor("aot", {"link-params": True})
      lowered = tvm.relay.build(
          relay_mod,
          tvm.target.Target(target, host=target),
          executor=executor,
          params=params,
      )
      return lowered
  
file_path: tvm/tests/python/contrib/test_hexagon/infrastructure.py
imports: import numpy
  import tvm
  from tvm import te
  from tvm.relay.backend import Executor
label_desc: Use image node_id 8 for calling a global function with example usage: build_module(relay_mod, target) and returns: lowered