code: def main():
      hfparser = HfArgumentParser((InferArguments,))
      options, extra_args = hfparser.parse_args_into_dataclasses(
          return_remaining_strings=True
      )
      inference(options)
  
file_path: DeepKE/example/llm/InstructKGC/src/inference.py
imports: import os
  import sys
  import json
  import argparse
  import torch
  from dataclasses import dataclass, field
  from transformers import HfArgumentParser, GenerationConfig, BitsAndBytesConfig
  from peft import LoraConfig, PeftModel, get_peft_model, set_peft_model_state_dict
  from peft.utils import WEIGHTS_NAME
  from utils.prompter import Prompter
  from utils.general_utils import get_model_tokenizer, get_model_name
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types