def generate_random_dataset(T_range_min, T_range_max, B=1, D=80, dataset_size=100):
    """Generate random dataset with T values within a given range, B, D"""
    T_values = [random.randint(T_range_min, T_range_max) for i in range(dataset_size)]
    dataset = []
    for t in T_values:
        dataset.append(generate_random_data_sample(t, B, D))
    return dataset, sum(T_values) / dataset_size
Generate random dataset with T values within a given range, B, D
examples/speech_to_speech/benchmarking/data_utils.py