code: def benchmark_indices_mapping():
      times = {"num examples": SPEED_TEST_N_EXAMPLES}
      functions = (select, sort, shuffle, train_test_split, shard)
      with tempfile.TemporaryDirectory() as tmp_dir:
          print("generating dataset")
          features = datasets.Features(
              {
                  "text": datasets.Value("string"),
                  "numbers": datasets.Value("float32"),
              }
          )
          dataset = generate_example_dataset(
              os.path.join(tmp_dir, "dataset.arrow"),
              features,
              num_examples=SPEED_TEST_N_EXAMPLES,
          )
          print("Functions")
          for func in functions:
              print(func.__name__)
              times[func.__name__] = func(dataset)
  
      with open(RESULTS_FILE_PATH, "wb") as f:
          f.write(json.dumps(times).encode("utf-8"))
  
file_path: datasets/benchmarks/benchmark_indices_mapping.py
imports: import json
  import os
  import tempfile
  import datasets
  from utils import generate_example_dataset, get_duration
label_desc: Use image node_id 6 for calling a global function with example usage: benchmark_indices_mapping() without return types