def METHOD_NAME():
    """Test Spherical Harmonic encoder"""
    levels = 4
    out_dim = levels**2
    with pytest.raises(ValueError):
        encoder = encodings.SHEncoding(levels=5)
    encoder = encodings.SHEncoding(levels=levels)
    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)