<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_csv(X, y, path):
 """Save data as a CSV file. Args: X (numpy or scipy sparse matrix):
 Data matrix y (numpy array):
 Target vector. path (str):
 Path to the CSV file to save data. """


    if sparse.issparse(X):
        X = X.todense()

    np.savetxt(path, np.hstack((y.reshape((-1, 1)), X)), delimiter=',')