code: def test_unique_na_fill(arr, fill_value):
      a = SparseArray(arr, fill_value=fill_value).unique()
      b = pd.Series(arr).unique()
      assert isinstance(a, SparseArray)
      a = np.asarray(a)
      tm.assert_numpy_array_equal(a, b)
  
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 7 for calling a global function with example usage: test_unique_na_fill(arr, fill_value) without return types