code: def parse_sm_secrets() -> Dict[str, str]:
      """We read our api_key from secrets.env in SageMaker."""
      env_dict = dict()
      # Set secret variables
      if os.path.exists(sm_files.SM_SECRETS):
          for line in open(sm_files.SM_SECRETS):
              key, val = line.strip().split("=", 1)
              env_dict[key] = val
      return 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 1 for calling a global function with example usage: parse_sm_secrets() and returns: env_dict