def METHOD_NAME():
    from ctapipe.io.hdf5tableio import FixedPointColumnTransform
    tr = FixedPointColumnTransform(
        scale=10, offset=0, source_dtype=np.float32, target_dtype=np.uint16
    )
    iinfo = np.iinfo(tr.target_dtype)
    assert tr.posinf == iinfo.max
    assert tr.nan == iinfo.max - 1
    assert tr.neginf == iinfo.max - 2
    values = {
        0: 0,
        0.1: 1,
        0.16: 2,
        -np.inf: tr.neginf,
        np.nan: tr.nan,
        np.inf: tr.posinf,
        (tr.maxval + 1) / 10: tr.posinf,
        -1: tr.neginf,
    }
    for v, e in values.items():
        transformed = tr(v)
        assert transformed.dtype == tr.target_dtype
        assert transformed == e
    # test array
    v = np.array(list(values.keys()))
    e = np.array(list(values.values()))
    assert_array_equal(tr(v), e)