code: def load_launch_sweep_config(config: Optional[str]) -> Any:
      if not config:
          return {}
  
      parsed_config = util.load_json_yaml_dict(config)
      if parsed_config is None:
          raise LaunchError(
              f"Could not load config from {config}. Check formatting"
          )
      return parsed_config
  
file_path: wandb/wandb/sdk/launch/sweeps/utils.py
imports: import json
  import os
  import re
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union
  import yaml
  import wandb
  from wandb import util
  from wandb.sdk.launch.errors import LaunchError
label_desc: Use image node_id 5 for calling a global function with example usage: load_launch_sweep_config(config) and returns: parsed_config, dict