code: def _reconstruct_codegen_args(args, codegen_name):
      codegen = get_codegen_by_target(codegen_name)
      pass_configs = PassContext.list_configs()
      codegen_options = {}
  
      if (
          codegen["config_key"] is not None
          and codegen["config_key"] in pass_configs
      ):
          attrs = make_node(pass_configs[codegen["config_key"]]["type"])
          fields = attrs_api.AttrsListFieldInfo(attrs)
          for field in fields:
              for tvm_type in INTERNAL_TO_NATIVE_TYPE:
                  if field.type_info.startswith(tvm_type):
                      target_option = field.name
                      var_name = f"target_{codegen_name.replace('-', '_')}_{target_option.replace('-', '_')}"
                      option_value = getattr(args, var_name)
                      if option_value is not None:
                          codegen_options[target_option] = option_value
      return codegen_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 6 for calling a global function with example usage: _reconstruct_codegen_args(args, codegen_name) and returns: codegen_options