def get_shape(tracks):
    """
    If tracks is a track-major list of possibly None tracks, get the batch size
    """
    for t in tracks:
        if t is not None:
            return t.shape
    raise ValueError("Cannot pass all None")