import csv


def read_csv_metrics(path):
    """ Read a metrics summary file produced by superpmi, and return the single row containing the information as a dictionary.

    Args:
        path (str) : path to .csv file

    Returns:
        A dictionary with each metric
    """

    with open(path) as csv_file:
        reader = csv.DictReader(csv_file)
        for row in reader:
            return row

    return None