code: def test_unique(data, expected):
      """
      Pandas de-duplicates nans and nulls respectively in Series.unique.
      `expected` is setup to mimic such behavior
      """
      gs = cudf.Series(data, nan_as_null=False)
  
      got = gs.list.unique()
      expected = cudf.Series(
          expected, nan_as_null=False
      ).list.sort_values()
  
      got = got.list.sort_values()
  
      assert_eq(expected, got)
  
imports: import functools
  import operator
  import numpy
  import pandas
  import pyarrow
  import pytest
  import cudf
  from cudf import NA
  from cudf._lib.copying import get_element
  from cudf.api.types import is_scalar
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, TIMEDELTA_TYPES, assert_eq
label_desc: Use image node_id 13 for calling a global function with example usage: test_unique(data, expected) without return types