def write_meta(meta_data, data_set):
    """
    Writes meta data into the data set.
    :param meta_data: Array N x 4, where N is the number of data elements.
    :param data_set: Dicom Data Set
    :return: Modified  Data Set 
    """
    for elem in meta_data:
        data_set.add_new((hex(elem[0]), hex(elem[1])), elem[2], elem[3])
    return data_set