import pickle


def read_pickle(file_name=None):
    """
    Read a pickle file and return the dictionary
    :param file_name:
    :return: dictionary
    """
    if file_name is not None:
        loaded_file = open(file_name, "rb")
        features = pickle.load(loaded_file, encoding="UTF8")
        return features
    return None