code: def _api_token_to_dict(api_token: str) -> Dict[str, str]:
      try:
          return json.loads(
              base64.b64decode(api_token.encode()).decode("utf-8")
          )
      except Exception:
          raise NeptuneInvalidApiTokenException()
  
file_path: neptune-client/src/neptune/internal/credentials.py
imports: import base64
  import json
  import os
  from dataclasses import dataclass
  from typing import Dict, Optional
  from neptune.common.envs import API_TOKEN_ENV_NAME
  from neptune.common.exceptions import NeptuneInvalidApiTokenException
  from neptune.constants import ANONYMOUS_API_TOKEN
  from neptune.exceptions import NeptuneMissingApiTokenException
  from neptune.internal.constants import ANONYMOUS_API_TOKEN_CONTENT
label_desc: Use image node_id 2 for calling the Credentials obj's underlying member method code with example usage: obj._api_token_to_dict(api_token) and returns: json