code: def test_memory_sanity(shutdown_only):
      info = ray.init(num_cpus=1, object_store_memory=500e6)
      ds = ray.data.range(10)
      ds = ds.map(
          lambda x: {"data": np.ones(100 * 1024 * 1024, dtype=np.uint8)}
      )
      ds.materialize()
      meminfo = memory_summary(
          info.address_info["address"], stats_only=True
      )
  
      # Sanity check spilling is happening as expected.
      assert "Spilled" in meminfo, meminfo
  
imports: import os
  from typing import List
  import numpy
  import pandas
  import pytest
  import ray
  from ray._private.internal_api import memory_summary
  from ray.data import Dataset
  from ray.data.block import BlockMetadata
  from ray.data.context import DataContext
  from ray.data.datasource import Datasource, ReadTask
  from ray.data.datasource.csv_datasource import CSVDatasource
  from ray.data.tests.util import column_udf, extract_values
  from ray.tests.conftest import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_memory_sanity(shutdown_only) without return types