code: def test_duplicated_series_complex_numbers(complex_dtype):
      # GH 17927
      expected = Series(
          [
              False,
              False,
              False,
              True,
              False,
              False,
              False,
              True,
              False,
              True,
          ],
          dtype=bool,
      )
      result = Series(
          [
              np.nan + np.nan * 1j,
              0,
              1j,
              1j,
              1,
              1 + 1j,
              1 + 2j,
              1 + 1j,
              np.nan,
              np.nan + np.nan * 1j,
          ],
          dtype=complex_dtype,
      ).duplicated()
      tm.assert_series_equal(result, expected)
  
imports: from itertools import product
  import numpy
  import pytest
  from pandas._libs import hashtable, index
  from pandas import NA, DatetimeIndex, Index, MultiIndex, Series
  import pandas._testing
label_desc: Use image node_id 16 for calling a global function with example usage: test_duplicated_series_complex_numbers(complex_dtype) without return types