<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_csv(path):
 """Load data from a CSV file. Args: path (str):
 A path to the CSV format file containing data. dense (boolean):
 An optional variable indicating if the return matrix should be dense. By default, it is false. Returns: Data matrix X and target vector y """


    with open(path) as f:
        line = f.readline().strip()

    X = np.loadtxt(path, delimiter=',',
                   skiprows=0 if is_number(line.split(',')[0]) else 1)

    y = np.array(X[:, 0]).flatten()
    X = X[:, 1:]

    return X, y