code: def __init__(self, task_dict) -> None:
      self.dataset_name = task_dict.get("name", "")
      self.task_name = task_dict.get("task", "")
      self.data_path = task_dict.get("path", "")
      self.decoding_format = task_dict.get("decoding_format", "")
      self.weight = int(task_dict.get("weight", 0))
      self.sel2record = task_dict.get("sel2record", "")
      self.metrics = task_dict.get("metrics", [])
      self.eval_match_mode = task_dict.get("eval_match_mode", "normal")
      self.schema = RecordSchema.read_from_file(
          f"{self.data_path}/{self.task_name}.schema"
      )
  
file_path: DeepKE/src/deepke/name_entity_re/cross/extraction/dataset_processer.py
imports: from ..extraction.record_schema import RecordSchema
  from ..extraction.constants import spot_prompt, asoc_prompt, text_start
label_desc: Use image node_id 1 to create a new TaskConfig object  with example: obj = TaskConfig(task_dict)