code: def test_object_array_astype_to_void():
      # This is different to `test_array_astype_to_void` as object arrays
      # are inspected.  The default void is "V8" (8 is the length of double)
      arr = np.array([], dtype="O").astype("V")
      assert arr.dtype == "V8"
  
imports: import sys
  import numpy
  from numpy.core._rational_tests import rational
  import pytest
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_raises, assert_warns, HAS_REFCOUNT
label_desc: Use image node_id 7 for calling a global function with example usage: test_object_array_astype_to_void() without return types