def _get_image_for_different_arch(self, image, platform):
        """Get image from random arch

        This is a workaround for aarch64 platform, because orchestrator cannot
        get this arch from manifests lists so we have to provide digest of a
        random platform to get image metadata for orchestrator.

        For standard platforms like x86_64, ppc64le, ... this method returns
        the corresponding digest

        """
        parents_digests = self.workflow.builder.parent_images_digests
        try:
            digests = parents_digests.get_image_digests(image)
        except KeyError:
            return None

        if not digests:
            return None
        platform_digest = digests.get(platform)
        if platform_digest is None:
            # exact match is not found, get random platform
            platform_digest = tuple(digests.values())[0]

        new_image = ImageName.parse(platform_digest)
        return new_image
Get image from random arch

        This is a workaround for aarch64 platform, because orchestrator cannot
        get this arch from manifests lists so we have to provide digest of a
        random platform to get image metadata for orchestrator.

        For standard platforms like x86_64, ppc64le, ... this method returns
        the corresponding digest