code: def _load_old_config(config: HubConfig):
      # The old version of the configuration file is obsolete, read the configuration value and delete it.
      old_cfg_file = os.path.join(hubenv.CONF_HOME, "config.json")
      if os.path.exists(old_cfg_file):
          with open(old_cfg_file) as file:
              try:
                  cfg = json.loads(file.read())
                  config.server = cfg["server_url"][0]
                  config.log_level = cfg["log_level"]
              except:
                  ...
          os.remove(old_cfg_file)
  
imports: import hashlib
  import os
  import time
  import json
  import uuid
  import yaml
  from easydict import EasyDict
  import paddlehub.env
label_desc: Use image node_id 2 for calling a global function with example usage: _load_old_config(config) without return types