code: def __load_configs(self):
      if self.config_folder.is_file():
          self.config_folder.unlink()
  
      if not self.config_folder.exists():
          self.config_folder.mkdir(parents=True)
  
      if not self.projects_folder.exists():
          self.projects_folder.mkdir()
  
      if not self.app_folder.exists():
          self.app_folder.mkdir()
  
      if not self.runs_cache.exists():
          self.runs_cache.mkdir()
  
      if self.configs_file.exists():
          with open(str(self.configs_file)) as f:
              config = util.yaml_load(f.read())
              if config is None:
                  config = {}
      else:
          logger.log(
              [
                  (f"~/{CONFIGS_FOLDER}/configs.yaml", Text.value),
                  " does not exist. Creating ",
                  (str(self.configs_file), Text.meta),
              ]
          )
          config = {}
  
      if "uuid" not in config:
          from uuid import uuid1
  
          config["uuid"] = uuid1().hex
          with open(str(self.configs_file), "w") as f:
              f.write(util.yaml_dump(config))
  
      default_config = self.__default_config()
      for k, v in default_config.items():
          if k not in config:
              config[k] = v
  
      self.uuid = config["uuid"]
  
      app_url = get_app_url_for_handle("", base_url=config["app_url"])
  
      # if not app_url:
      #     raise ValueError('Please provide `app_url` in `~/labml/configs.yaml` or set '
      #                      'environment variable `labml_app_url`.')
  
      self.app_configs = AppTrackConfigs(
          url=get_app_url_for_handle("computer", base_url=app_url),
          frequency=config["app_track_frequency"],
          open_browser=config["app_open_browser"],
          is_default=False,
      )
      self.app_sync_url = get_app_url_for_handle(
          "sync", base_url=app_url
      )
      self.app_polling_url = get_app_url_for_handle(
          "polling", base_url=app_url
      )
  
file_path: labml/client/labml/internal/computer/configs.py
imports: from pathlib import Path
  from typing import Optional, Set
  from labml import logger
  from labml.logger import Text
  from ..None import util
  from ..app.configs import AppTrackConfigs
  from ..lab import get_app_url_for_handle
label_desc: Use image node_id 2 for calling the Computer obj's underlying member method code with example usage: obj.__load_configs() without return types