code: def get_config_from_registry(image, registry, digest, insecure=False,
                               dockercfg_path=None, version='v2'):
      
      blob_config, _ = get_config_and_id_from_registry(image, registry, digest, insecure=insecure,
                                                       dockercfg_path=dockercfg_path,
                                                       version=version)
      return blob_config
docs: Return image config by digest
  
      :param image: ImageName, the remote image to inspect
      :param registry: str, URI for registry, if URI schema is not provided,
                            https:// will be used
      :param digest: str, digest of the image manifest
      :param insecure: bool, when True registry's cert is not verified
      :param dockercfg_path: str, dirname of .dockercfg location
      :param version: str, which manifest schema versions to fetch digest
  
      :return: dict, versions mapped to their digest