def METHOD_NAME(self):
    a = dvector()
    b = shared(7)
    out = a + b
    f = function([In(a, strict=False)], out)
    # works, rand generates float64 by default
    assert f(np.random.random((8,)).astype(np.float64)).dtype == np.float64
    # works, casting is allowed
    assert f(np.array([1, 2, 3, 4], dtype="int32")).dtype == np.float64
    f = function([In(a, strict=True)], out)
    with pytest.raises(TypeError):
        # fails, f expects float64
        f(np.array([1, 2, 3, 4], dtype="int32"))