code: def _create_empty_array_dict(space, n=1, fn=np.zeros):
      return OrderedDict(
          [
              (key, create_empty_array(subspace, n=n, fn=fn))
              for (key, subspace) in space.spaces.items()
          ]
      )
  
file_path: gym/gym/vector/utils/numpy_utils.py
imports: from collections import OrderedDict
  from functools import singledispatch
  from typing import Iterable, Union
  import numpy
  from gym.spaces import Box, Dict, Discrete, MultiBinary, MultiDiscrete, Space, Tuple
label_desc: Use image node_id 9 for calling a global function with example usage: _create_empty_array_dict(space, n, fn) and returns: OrderedDict