code: def load_dataset_config(dataset_path: str):
      cfg = json.load(open(dataset_path, "r", encoding="utf-8"))
  
      platform_config_path = os.getenv("PLATFORM_CONFIG_PATH")
      if platform_config_path is None:
          logger.info(
              "no platform_config_path. Directly load dataset_path({dataset_path})".format(
                  dataset_path=dataset_path
              )
          )
          return cfg
  
      path_dict = json.load(
          open(platform_config_path, "r", encoding="utf-8")
      )["dataset_map"]
      logger.info(
          "load dataset_path({dataset_path}) with platform_config_path({platform_config_path})".format(
              dataset_path=dataset_path,
              platform_config_path=platform_config_path,
          )
      )
      for dataset in cfg:
          dataset["path"] = os.path.join(
              path_dict[dataset["dataset_name"]], dataset["path"]
          )
          dataset["transforms"] = os.path.join(
              path_dict[dataset["dataset_name"]], dataset["transforms"]
          )
      return cfg
  
file_path: DeepKE/example/llm/CPM-Bee/src/cpm_live/utils/config.py
imports: import json
  import os
  import copy
  from typing import Any, Dict, Union
  from .log import logger
label_desc: Use image node_id 1 for calling a global function with example usage: load_dataset_config(dataset_path) and returns: cfg, cfg