code: def data_for_sorting(request):
      return SparseArray([2, 3, 1], fill_value=request.param)
  
imports: import numpy
  import pytest
  from pandas.errors import PerformanceWarning
  import pandas
  from pandas import SparseDtype
  import pandas._testing
  from pandas.arrays import SparseArray
  from pandas.tests.extension import base
label_desc: Use image node_id 7 for calling a global function with example usage: data_for_sorting(request) and returns: SparseArray