code: def get_dockercfg_credentials(self, docker_registry):
          
          if not self.registry_secret_path:
              return {}
  
          dockercfg = Dockercfg(self.registry_secret_path)
          registry_creds = dockercfg.get_credentials(docker_registry)
          if 'username' not in registry_creds:
              return {}
  
          return {
              'basic_auth_username': registry_creds['username'],
              'basic_auth_password': registry_creds['password'],
          }
docs: Read the .dockercfg file and return an empty dict, or else a dict
          with keys 'basic_auth_username' and 'basic_auth_password'.