code: def annotation(mod, params, target):
      """DEPRECATED
  
      Annotate Relay expression for offloading operators to Vitis AI DPU accelerators
      NOTE: This function does the same as the next one (`partition_for_vitis_ai`) but is
      still here for backward compatibility"""
      # We need type information for supporting models that contain operations that don't
      #   have a Relay to XLayer translation
      warnings.warn(
          "tvm.relay.op.contrib.vitis_ai.annotation() is being deprecated."
          " Please use tvm.relay.op.contrib.vitis_ai.partition_for_vitis_ai() instead. "
          " Check out https://tvm.apache.org/docs/deploy/vitis_ai.html for documentation. "
      )
      mod = relay.transform.InferType()(mod)
      mod = VitisAIAnnotationPass("vitis_ai", target, params)(mod)
      return mod
  
file_path: tvm/python/tvm/relay/op/contrib/vitis_ai.py
imports: import warnings
  import numpy
  from tvm import relay
  import tvm._ffi
  from tvm.relay import transform
  from tvm.relay.expr import Tuple, TupleGetItem
  from tvm.relay.build_module import bind_params_by_name
  from tvm.relay.op.annotation import compiler_begin, compiler_end
label_desc: Use image node_id 2 for calling a global function with example usage: annotation(mod, params, target) and returns: mod