def METHOD_NAME(tracks):
    depths = []
    samples = []
    for track in tracks:
        depths.append(track.params.max_depth)
        if "subsample" not in track.params_dict.keys():
            samples.append(1.0)
            continue
        samples.append(track.params.subsample)
    depths = set(depths)
    samples = set(samples)
    table_tracks = {(depth, subsample): [] for depth in depths for subsample in samples}
    for track in tracks:
        subsample = track.params.subsample if "subsample" in track.params_dict.keys() else 1.
        table_tracks[(track.params.max_depth, subsample)].append(track)
    return table_tracks