code: def lower_to_primfunc(relay_func, target):
      """Lower Relay Function to TIR PrimFunc.
  
      Parameters
      ----------
      relay_func: relay.Function
          The source primitive function, created by FuseOps.
  
      target : Target
          The compilation target.
  
      Returns
      -------
      prim_func : tir.PrimFunc
          The created prim func.
      """
      f = tvm._ffi.get_global_func("relay.backend.LowerToPrimFunc")
      assert (
          f is not None
      ), "relay.backend.LowerToPrimFunc does not exist. "
  
      with target:
          return f(relay_func, target)
  
imports: from __future__ import absolute_import
  import logging
  import numpy
  import tvm
  from tvm import autotvm, te
  from tvm.auto_scheduler import is_auto_scheduler_enabled
  from tvm.meta_schedule import is_meta_schedule_enabled
  from tvm.runtime import Object
  from tvm.support import libinfo
  from tvm.target import Target
  from ..None import function
  from ..None import ty
  from ..backend.utils import mangle_module_name
  from .None import _backend
label_desc: Use image node_id 7 for calling a global function with example usage: lower_to_primfunc(relay_func, target) and returns: f