import pickle


def load_dictionary(file_path):
    """
    Loads a categorical variable dictionary that was saved in pickle format.
    """
    with open(file_path, "rb") as dictionary_file:
        return pickle.load(dictionary_file)