code: def _replace_device_with_tracing(target):
      """This is to replace -device=XXX with -device=tracing in the tvm_target string.
      It is a stand-along function for testability.
      We need to have device=tracing in order to fetch the workloads, it is not used
      for anything beyond that so it is safe to override the device here only.
      """
      target = str(target)
      if "-device" in target:
          return re.sub(
              "-device=[^\\-$]+", "-device=tracing ", target
          ).strip(" ")
      return target + " -device=tracing"
  
file_path: tvm/python/tvm/autotvm/graph_tuner/utils/traverse_graph.py
imports: import threading
  import re
  import tvm
  from tvm import relay, autotvm
  from tvm.relay import transform
  from tvm.relay.expr import Call, TupleGetItem, Var, Constant, Tuple
  from tvm.relay.function import Function
  from tvm.relay.ty import TupleType, TensorType
  from tvm.autotvm.task import TaskExtractEnv
  from .utils import has_multiple_inputs, is_boundary_node, is_skipped_node
  from .._base import OPT_OUT_OP
label_desc: Use image node_id 3 for calling a global function with example usage: _replace_device_with_tracing(target) and returns: unknown, re