def METHOD_NAME(cluster_instances, region):
    """Check that instances with enable_intel_hpc_platform are tagged."""
    logging.info("Checking that instances are tagged when enable_intel_hpc_platform")
    try:
        instances_with_tag = {
            tag.get("ResourceId")
            for tag in boto3.client("ec2", region_name=region)
            .describe_tags(
                Filters=[
                    {
                        "Name": "tag:parallelcluster:intel-hpc",
                        "Values": [
                            "enable_intel_hpc_platform=true",
                        ],
                    },
                    {
                        "Name": "resource-id",
                        "Values": cluster_instances,
                    },
                ]
            )
            .get("Tags")
        }
    except ClientError as e:
        logging.error(e.response.get("Error").get("Message"))
        raise
    assert_that(all(instance in instances_with_tag for instance in cluster_instances)).is_true()