<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_vector(x):
 """ x is a 2D sparse matrix with it's first shape equal to 1. """

    return sp.issparse(x) and len(x.shape) == 2 and x.shape[0] == 1