code: def test_void_special_case(self):
      # Void dtypes with structures discover tuples as elements
      arr = np.array((1, 2, 3), dtype="i,i,i")
      assert arr.shape == ()
      arr = np.array([(1, 2, 3)], dtype="i,i,i")
      assert arr.shape == (1,)
  
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 1 for calling the TestScalarDiscovery obj's underlying member method code with example usage: obj.test_void_special_case() without return types