code: def test_empty_blocks(ray_start_regular_shared):
      ds = ray.data.range(10).repartition(20)
      assert ds.num_blocks() == 20
      rad = ds.to_random_access_dataset("id")
      for i in range(10):
          assert ray.get(rad.get_async(i)) == {"id": i}
  
file_path: ray/python/ray/data/tests/test_random_access.py
imports: import pyarrow
  import pytest
  import ray
  from ray.tests.conftest import *
label_desc: Use image node_id 2 for calling a global function with example usage: test_empty_blocks(ray_start_regular_shared) without return types