code: def _parse_credential_output(output: str) -> List[str]:
      """Parse the output of `git credential fill` to extract the password.
  
      Args:
          output (`str`):
              The output of `git credential fill`.
      """
      # NOTE: If user has set an helper for a custom URL, it will not we caught here.
      #       Example: `credential.https://huggingface.co.helper=store`
      #       See: https://github.com/huggingface/huggingface_hub/pull/1138#discussion_r1013324508
      return sorted(  # Sort for nice printing
          set(  # Might have some duplicates
              match[0] for match in GIT_CREDENTIAL_REGEX.findall(output)
          )
      )
  
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 4 for calling a global function with example usage: _parse_credential_output(output) and returns: sorted