def calculate_closest_pattern_dictionary(distances_dictionary):
    """
    Calculates the closets pattern from a dictionary with the distances of
    a point to a dictionary
    :param distances_dictionary: a dictionary where each key is the index of a
     fis point and the value is the distance to that fix point
    :return:the pattern with the smallest distance
    """

    return min(distances_dictionary, key=distances_dictionary.get)