code: def test_strict_object_support(ray_start_regular_shared):
      ds = ray.data.from_items([{"x": 2}, {"x": object()}])
      ds.map_batches(lambda x: x, batch_format="numpy").materialize()
  
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 8 for calling a global function with example usage: test_strict_object_support(ray_start_regular_shared) without return types