code: def _reconstruct_registry_options(args, registry, name):
      options = {}
      for option, option_type in registry.list_registered_options(
          name
      ).items():
          if option_type in INTERNAL_TO_NATIVE_TYPE:
              var_name = f"{registry.flag_registry_name}_{name}_{option.replace('-', '_')}"
              option_value = getattr(args, var_name)
              if option_value is not None:
                  options[option] = option_value
      return options
  
imports: from tvm.driver.tvmc import TVMCException
label_desc: Use image node_id 3 for calling a global function with example usage: _reconstruct_registry_options(args, registry, name) and returns: options