code: def _reconstruct_target_kind_args(args, kind_name):
      kind_options = {}
      for target_option, target_type in TargetKind.options_from_name(
          kind_name
      ).items():
          if target_type in INTERNAL_TO_NATIVE_TYPE:
              var_name = f"target_{kind_name.replace('-', '_')}_{target_option.replace('-', '_')}"
              option_value = getattr(args, var_name)
              if option_value is not None:
                  kind_options[target_option] = getattr(args, var_name)
      return kind_options
  
imports: import os
  import logging
  import json
  import re
  import tvm
  from tvm.driver import tvmc
  from tvm.driver.tvmc import TVMCException
  from tvm.driver.tvmc.composite_target import get_codegen_by_target, get_codegen_names
  from tvm.ir.attrs import make_node, _ffi_api
  from tvm.ir.transform import PassContext
  from tvm.target import Target, TargetKind
label_desc: Use image node_id 5 for calling a global function with example usage: _reconstruct_target_kind_args(args, kind_name) and returns: kind_options