<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_sparse(arr):
 """ Check whether an array-like is a 1-D pandas sparse array. Check that the one-dimensional array-like is a pandas sparse array. Returns True if it is a pandas sparse array, not another type of sparse array. Parameters arr : array-like Array-like to check. Returns ------- bool Whether or not the array-like is a pandas sparse array. See Also -------- DataFrame.to_sparse : Convert DataFrame to a SparseDataFrame. Series.to_sparse : Convert Series to SparseSeries. Series.to_dense : Return dense representation of a Series. Examples -------- Returns `True` if the parameter is a 1-D pandas sparse array. True True Returns `False` if the parameter is not sparse. False False Returns `False` if the parameter is not a pandas sparse array. False Returns `False` if the parameter has more than one dimension. columns=['max_speed'], index=['falcon', 'parrot', 'lion', 'monkey']) False True """

    from pandas.core.arrays.sparse import SparseDtype

    dtype = getattr(arr, 'dtype', arr)
    return isinstance(dtype, SparseDtype)