def METHOD_NAME():
    """Test scaling and offset encoder"""
    in_dim = 4
    in_tensor = torch.ones((2, 3, in_dim))
    scaling = 2.0
    offset = 4.5
    encoder = encodings.ScalingAndOffset(in_dim=in_dim, scaling=scaling, offset=offset)
    assert encoder.get_out_dim() == in_dim
    encoded = encoder(in_tensor)
    assert encoded.shape[-1] == in_dim
    assert in_tensor * 6.5 == pytest.approx(encoded)
    with pytest.raises(ValueError):
        encodings.ScalingAndOffset(in_dim=-1)