code: def load_creds(cred: CredInputs) -> Dict[str, Any]:
      if isinstance(cred, str):
          cred = data_utils.load_json(cred)
      return cred
  
file_path: ludwig/ludwig/backend/utils/storage.py
imports: import contextlib
  from typing import Any, Dict, Optional, Union
  from ludwig.utils import data_utils
label_desc: Use image node_id 1 for calling a global function with example usage: load_creds(cred) and returns: cred