code: def test_nested_simple(self):
      initial = [1.2]
      nested = initial
      for i in range(np.MAXDIMS - 1):
          nested = [nested]
  
      arr = np.array(nested, dtype="float64")
      assert arr.shape == (1,) * np.MAXDIMS
      with pytest.raises(ValueError):
          np.array([nested], dtype="float64")
  
      with pytest.raises(
          ValueError, match=".*would exceed the maximum"
      ):
          np.array([nested])  # user must ask for `object` explicitly
  
      arr = np.array([nested], dtype=object)
      assert arr.dtype == np.dtype("O")
      assert arr.shape == (1,) * np.MAXDIMS
      assert arr.item() is initial
  
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 1 for calling the TestNested obj's underlying member method code with example usage: obj.test_nested_simple() without return types