code: def test_stats(ray_start_regular_shared):
      ds = ray.data.range(100, parallelism=10)
      rad = ds.to_random_access_dataset("id", num_workers=1)
      stats = rad.stats()
      assert "Accesses per worker: 0 min, 0 max, 0 mean" in stats, stats
      ray.get(rad.get_async(0))
      stats = rad.stats()
      assert "Accesses per worker: 1 min, 1 max, 1 mean" in stats, stats
      rad.multiget([1, 2, 3])
      stats = rad.stats()
      assert "Accesses per worker: 2 min, 2 max, 2 mean" in stats, stats
  
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 4 for calling a global function with example usage: test_stats(ray_start_regular_shared) without return types