code: def get_credential_store(
      authconfig: Dict, registry: str
  ) -> Optional[str]:
      if not isinstance(authconfig, AuthConfig):
          authconfig = AuthConfig(authconfig)
      return authconfig.get_credential_store(registry)
  
imports: import base64
  import json
  import logging
  import os
  import platform
  from typing import Any, Dict, Mapping, Optional, Tuple, Union
  import dockerpycreds
label_desc: Use image node_id 8 for calling a global function with example usage: get_credential_store(authconfig, registry) and returns: authconfig