code: def parse_sm_resources() -> Tuple[Dict[str, str], Dict[str, str]]:
      run_dict = dict()
      run_id = os.getenv("TRAINING_JOB_NAME")
  
      if run_id and os.getenv("WANDB_RUN_ID") is None:
          suffix = "".join(
              secrets.choice(string.ascii_lowercase + string.digits)
              for _ in range(6)
          )
          run_dict["run_id"] = "-".join(
              [
                  run_id,
                  suffix,
                  os.getenv("CURRENT_HOST", socket.gethostname()),
              ]
          )
      run_dict["run_group"] = os.getenv("TRAINING_JOB_NAME")
      env_dict = parse_sm_secrets()
      return run_dict, env_dict
  
file_path: wandb/wandb/integration/sagemaker/resources.py
imports: import os
  import secrets
  import socket
  import string
  from typing import Dict, Tuple
  from .None import files
label_desc: Use image node_id 2 for calling a global function with example usage: parse_sm_resources() and returns: run_dict,  env_dict