code: def test_from_numpy_variable_shaped(ray_start_regular_shared):
      arr = np.array([np.ones((2, 2)), np.ones((3, 3))], dtype=object)
      ds = ray.data.from_numpy(arr)
      values = np.array(
          extract_values("data", ds.take(2)), dtype=object
      )
  
      def recursive_to_list(a):
          if not isinstance(a, (list, np.ndarray)):
              return a
          return [recursive_to_list(e) for e in a]
  
      # Convert to a nested Python list in order to circumvent failed comparisons on
      # ndarray raggedness.
      np.testing.assert_equal(
          recursive_to_list(values), recursive_to_list(arr)
      )
  
imports: import os
  import numpy
  import pandas
  import pyarrow
  import pytest
  from pytest_lazyfixture import lazy_fixture
  import ray
  from ray.data.datasource import BaseFileMetadataProvider, FastFileMetadataProvider, Partitioning, PartitionStyle, PathPartitionFilter
  from ray.data.tests.conftest import *
  from ray.data.tests.mock_http_server import *
  from ray.data.tests.test_partitioning import PathPartitionEncoder
  from ray.data.tests.util import Counter, extract_values
  from ray.tests.conftest import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_from_numpy_variable_shaped(ray_start_regular_shared) and returns: unknown, a