code: def test_create_empty_array_zeros(space, n):
      def assert_nested_type(arr, space, n):
          if isinstance(space, BaseGymSpaces):
              assert isinstance(arr, np.ndarray)
              assert arr.dtype == space.dtype
              assert arr.shape == (n,) + space.shape
              assert np.all(arr == 0)
  
          elif isinstance(space, Tuple):
              assert isinstance(arr, tuple)
              assert len(arr) == len(space.spaces)
              for i in range(len(arr)):
                  assert_nested_type(arr[i], space.spaces[i], n)
  
          elif isinstance(space, Dict):
              assert isinstance(arr, OrderedDict)
              assert set(arr.keys()) ^ set(space.spaces.keys()) == set()
              for key in arr.keys():
                  assert_nested_type(arr[key], space.spaces[key], n)
  
          else:
              raise TypeError(f"Got unknown type `{type(arr)}`.")
  
      array = create_empty_array(space, n=n, fn=np.zeros)
      assert_nested_type(array, space, n=n)
  
file_path: gym/tests/vector/test_numpy_utils.py
imports: from collections import OrderedDict
  import numpy
  import pytest
  from gym.spaces import Dict, Tuple
  from gym.vector.utils.numpy_utils import concatenate, create_empty_array
  from gym.vector.utils.spaces import BaseGymSpaces
  from tests.vector.utils import spaces
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_empty_array_zeros(space, n) without return types