from typing import List
import csv


def read_tsv(path: str, delimiter: str = '\t') -> List[List[str]]:
    """
    Take a tsv filepath and return an array; e.g. [[],[],[]].

    For example, a file containing:

    1   2   3
    4   5   6
    7   8   9

    would return the array: [['1','2','3'], ['4','5','6'], ['7','8','9']]

    WDL syntax: Array[Array[String]] read_tsv(String|File)
    """
    tsv_array = []
    with open(path, 'r') as f:
        data_file = csv.reader(f, delimiter=delimiter)
        for line in data_file:
            tsv_array.append(line)
    return tsv_array