code: def test_unique_all_sparse():
      # https://github.com/pandas-dev/pandas/issues/23168
      arr = SparseArray([0, 0])
      result = arr.unique()
      expected = SparseArray([0])
      tm.assert_sp_array_equal(result, expected)
  
imports: import re
  import numpy
  import pytest
  from pandas._libs.sparse import IntIndex
  import pandas
  from pandas import SparseDtype, isna
  import pandas._testing
  from pandas.core.arrays.sparse import SparseArray
label_desc: Use image node_id 8 for calling a global function with example usage: test_unique_all_sparse() without return types