def get_name(names, location):
    """
    Reads in the appropriate dictionary of classes and the location of the class we want
    :param names: dictionary of classes and integer labels
    :param location: integer label of flower
    :return: the name of the flower that lines up with the passes location
    """
    for name in names:
        if names[name] == location:
            return name
    return 'invalid location passed to get_name'