code: def list_credential_helpers(
      folder: Optional[str] = None,
  ) -> List[str]:
      """Return the list of git credential helpers configured.
  
      See https://git-scm.com/docs/gitcredentials.
  
      Credentials are saved in all configured helpers (store, cache, macOS keychain,...).
      Calls "`git credential approve`" internally. See https://git-scm.com/docs/git-credential.
  
      Args:
          folder (`str`, *optional*):
              The folder in which to check the configured helpers.
      """
      try:
          output = run_subprocess(
              "git config --list", folder=folder
          ).stdout
          parsed = _parse_credential_output(output)
          return parsed
      except subprocess.CalledProcessError as exc:
          raise EnvironmentError(exc.stderr)
  
file_path: huggingface_hub/src/huggingface_hub/utils/_git_credential.py
imports: import re
  import subprocess
  from typing import List, Optional
  from ..constants import ENDPOINT
  from ._subprocess import run_interactive_subprocess, run_subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: list_credential_helpers(folder) and returns: parsed