def METHOD_NAME():
    """Test Spherical Harmonic encoder"""
    num_levels = 4
    features_per_level = 4
    out_dim = num_levels * features_per_level
    encoder = encodings.HashEncoding(
        num_levels=num_levels,
        features_per_level=features_per_level,
        log2_hashmap_size=5,
        implementation="torch",
    )
    assert encoder.get_out_dim() == out_dim
    in_tensor = torch.zeros((10, 3))
    in_tensor[..., 1] = 1
    encoded = encoder(in_tensor)
    assert encoded.shape == (10, out_dim)
    encoder = encodings.HashEncoding(
        num_levels=num_levels,
        features_per_level=features_per_level,
        log2_hashmap_size=5,
        implementation="tcnn",
    )
    in_tensor = torch.zeros((10, 3))
    in_tensor[..., 1] = 1
    encoded = encoder(in_tensor)
    assert encoded.shape == (10, out_dim)