code: def values(s):
      if isinstance(s, cudf.Series):
          if Version(cudf.__version__) >= Version("22.02"):
              return s.to_cupy(na_value=np.nan)
          else:
              return s.to_gpu_array(fillna=np.nan)
  
      else:
          return s.values
  
imports: from __future__ import annotations
  from packaging.version import Version
  import numpy
  from toolz import memoize
  from datashader.glyphs.glyph import Glyph
  from datashader.utils import isreal, ngjit
  from numba import cuda
label_desc: Use image node_id 1 for calling a global function with example usage: values(s) and returns: s, s, s