code: def test_pickle_series(named):
      np.random.seed(0)
      if named:
          ser = Series(np.random.random(10), name="a")
      else:
          ser = Series(np.random.random(10))
  
      pickled = pickle.dumps(ser)
      out = pickle.loads(pickled)
      assert (ser == out).all()
  
file_path: cudf/python/cudf/cudf/tests/test_pickling.py
imports: import pickle
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame, GenericIndex, RangeIndex, Series
  from cudf.core.buffer import as_buffer
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 8 for calling a global function with example usage: test_pickle_series(named) without return types