def uniq(trains):
    """Returns only uniq trains."""
    seen = set()
    result = []
    for train in trains:
        if train.train_link not in seen:
            seen.add(train.train_link)
            result.append(train)
    return result
