def METHOD_NAME(self, op_fn, type_fn):
    x = type_fn()
    f = function([x], op_fn(x))
    xval = _asarray(np.random.random(10) * 10, dtype=type_fn.dtype)
    yval = f(xval)
    assert str(yval.dtype) == op_fn.scalar_op.output_types_preference.spec[0].dtype