import json


def load_cat_to_name(path):
    """Load a JSON file containing a mapping of category labels to flower names.
    
    Args:
        path: A pathlib.Path object containing the location of the JSON file.
    Returns:
        Dictionary: Containing the category labels as keys and the flower names
            as values.
    """

    with open(path, 'r') as file:
        return json.load(file)