def create_idx_to_cat(cat_to_idx):
    """Reverse the mapping of a cat_to_idx dictionary so that the internal index
    numbers provided by the classifier can be mapped to the actual flower 
    category labels.
    
    Args:
        cat_to_idx:  Dictionary mapping flower categories to classifier indexes.
    returns
        Dictionary mapping classifier indexes to flower categories.
    """

    return {val: key for key, val in cat_to_idx.items()}