code: def arr(arr_data):
      return SparseArray(arr_data)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import SparseDtype
  import pandas._testing
  from pandas.core.arrays.sparse import SparseArray
label_desc: Use image node_id 2 for calling a global function with example usage: arr(arr_data) and returns: SparseArray