code: def get_image_platform_digest(self, image, platform):
          
          image_digests = self.get_image_digests(image)
          digest = image_digests.get(platform)
          if digest is None:
              raise KeyError(
                  'Image {} has no digest record for platform {}'.format(image, platform)
              )
  
          return digest
docs: Get digest of specified image and platform
  
          :param ImageName image: image
          :param str platform: name of the platform/arch (x86_64, ppc64le, ...)
          :raises KeyError: when digest is not found
          :rtype: str
          :return: digest of the specified image (fedora@sha256:...)