def METHOD_NAME(file_name: Union[str, Path]):
    if isinstance(file_name, str):
        file_name = Path(file_name)
    lrs = []
    losses = []
    with open(file_name) as f:
        tsvin = csv.reader(f, delimiter="\t")
        row = next(tsvin)
        LEARNING_RATE = row.index("LEARNING_RATE")
        TRAIN_LOSS = row.index("TRAIN_LOSS")
        # then get all relevant values from the tsv
        for row in tsvin:
            if row[TRAIN_LOSS] != "_":
                losses.append(float(row[TRAIN_LOSS]))
            if row[LEARNING_RATE] != "_":
                lrs.append(float(row[LEARNING_RATE]))
    return lrs, losses