def load_cows(filename):
    """
    Read the contents of the given file.  Assumes the file contents contain
    data in the form of comma-separated cow name, weight pairs, and return a
    dictionary containing cow names as keys and corresponding weights as values.

    Parameters:
    filename - the name of the data file as a string

    Returns:
    a dictionary of cow name (string), weight (int) pairs
    """
    # MY_CODE
    cow_dict = {}
    with open(filename, 'r') as f:
        for line in f:
            name, weight = line.split(',')
            cow_dict[name] = int(weight)
    return cow_dict