code: def test_strict_read_schemas(ray_start_regular_shared):
      ds = ray.data.range(1)
      assert ds.take()[0] == {"id": 0}
  
      ds = ray.data.range_tensor(1)
      assert ds.take()[0] == {"data": np.array([0])}
  
      ds = ray.data.from_items([1])
      assert ds.take()[0] == {"item": 1}
  
      ds = ray.data.from_items([object()])
      assert isinstance(ds.take()[0]["item"], object)
  
      ds = ray.data.read_numpy("example://mnist_subset.npy")
      assert "data" in ds.take()[0]
  
      ds = ray.data.from_numpy(np.ones((100, 10)))
      assert "data" in ds.take()[0]
  
      ds = ray.data.from_numpy_refs(ray.put(np.ones((100, 10))))
      assert "data" in ds.take()[0]
  
      ds = ray.data.read_binary_files("example://image-datasets/simple")
      assert "bytes" in ds.take()[0]
  
      ds = ray.data.read_images("example://image-datasets/simple")
      assert "image" in ds.take()[0]
  
      ds = ray.data.read_text(
          "example://sms_spam_collection_subset.txt"
      )
      assert "text" in ds.take()[0]
  
file_path: ray/python/ray/data/tests/test_strict_mode.py
imports: from collections import UserDict
  import numpy
  import pytest
  import ray
  from ray.data.tests.conftest import *
  from ray.tests.conftest import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_strict_read_schemas(ray_start_regular_shared) without return types