code: def test_void_from_structure():
      dtype = np.dtype([("s", [("f", "f8"), ("u", "U1")]), ("i", "i2")])
      data = np.array(((1.0, "a"), 2), dtype=dtype)
      res = np.void(data[()], dtype=dtype)
      assert type(res) is np.void
      assert res.dtype == dtype
      assert res == data[()]
  
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_almost_equal, assert_warns
label_desc: Use image node_id 6 for calling a global function with example usage: test_void_from_structure() without return types