code: def test_void_bad_dtype():
      with pytest.raises(
          TypeError, match="void: descr must be a `void.*int64"
      ):
          np.void(4, dtype="i8")
  
      # Subarray dtype (with shape `(4,)` is rejected):
      with pytest.raises(
          TypeError, match=r"void: descr must be a `void.*\(4,\)"
      ):
          np.void(4, dtype="4i")
  
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_almost_equal, assert_warns
label_desc: Use image node_id 7 for calling a global function with example usage: test_void_bad_dtype() without return types