code: def test_scalar_unary_operations(slr, dtype, op):
      slr_host = np.array([slr])[0].astype(cudf.dtype(dtype))
      slr_device = cudf.Scalar(slr, dtype=dtype)
  
      expect = op(slr_host)
      got = op(slr_device)
  
      assert expect == got.value
  
      # f16 for small ints with ceil and float
      if expect.dtype == np.dtype("float16"):
          assert got.dtype == np.dtype("float32")
      else:
          assert expect.dtype == got.dtype
  
file_path: cudf/python/cudf/cudf/tests/test_unaops.py
imports: import itertools
  import operator
  import re
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf import Series
  from cudf.testing import _utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_scalar_unary_operations(slr, dtype, op) without return types