<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_image_platform_digest(self, image, platform):
 """Get digest of specified image and platform :param ImageName image: image :raises KeyError: when digest is not found :rtype: str """

        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