def METHOD_NAME(self, type1, type2, converter):
    x = TensorType(dtype=type1, shape=(None,))()
    y = converter(x)
    f = function([In(x, strict=True)], y)
    a = np.arange(10, dtype=type1)
    b = f(a)
    assert np.array_equal(b, np.arange(10, dtype=type2))