code: def test_uneven_depth_ragged(self, arraylike):
      arr = np.arange(4).reshape((2, 2))
      arr = arraylike(arr)
  
      # Array is ragged in the second dimension already:
      out = np.array([arr, [arr]], dtype=object)
      assert out.shape == (2,)
      assert out[0] is arr
      assert type(out[1]) is list
  
      # Array is ragged in the third dimension:
      with pytest.raises(ValueError):
          # This is a broadcast error during assignment, because
          # the array shape would be (2, 2, 2) but `arr[0, 0] = arr` fails.
          np.array([arr, [arr, arr]], dtype=object)
  
imports: from itertools import permutations, product
  import pytest
  from pytest import param
  import numpy
  from numpy.core._rational_tests import rational
  from numpy.core._multiarray_umath import _discover_array_parameters
  from numpy.testing import assert_array_equal, assert_warns, IS_PYPY
label_desc: Use image node_id 4 for calling the TestNested obj's underlying member method code with example usage: obj.test_uneven_depth_ragged(arraylike) without return types