def METHOD_NAME(data_path):
    segment_len_idx = 3
    segment_len = 0
    segment = []
    segment_list = []
    with open(data_path) as f:
        while True:
            line = f.readline()
            if not line:
                segment_list.append(segment)
                segment = []
                break
            if line[0] != "#" and line[0] != "}":
                tmp = line[0 : len(line) - 1].rstrip()  # remove EOL