code: def test_empty_sequence(self):
      arr = np.array([[], [1], [[1]]], dtype=object)
      assert arr.shape == (3,)
  
      # The empty sequence stops further dimension discovery, so the
      # result shape will be (0,) which leads to an error during:
      with pytest.raises(ValueError):
          np.array([[], np.empty((0, 1))], dtype=object)
  
imports: from itertools import permutations, product
  import pytest
  from pytest import param
  import numpy
  import numpy._core._multiarray_umath
  from numpy._core._rational_tests import rational
  from numpy.testing import assert_array_equal, assert_warns, IS_PYPY
label_desc: Use image node_id 5 for calling the TestNested obj's underlying member method code with example usage: obj.test_empty_sequence() without return types