def METHOD_NAME(feature):
    """Test that the metric works."""
    metric = KernelInceptionDistance(feature=feature, subsets=5, subset_size=2)
    for _ in range(2):
        img = torch.randint(0, 255, (10, 3, 299, 299), dtype=torch.uint8)
        metric.update(img, real=True)
        metric.update(img, real=False)
    assert torch.allclose(torch.cat(metric.real_features, dim=0), torch.cat(metric.fake_features, dim=0))
    mean, std = metric.compute()
    assert mean != 0.0
    assert std >= 0.0