code: def _concatenate_dict(space, items, out):
      return OrderedDict(
          [
              (
                  key,
                  concatenate(
                      subspace, [item[key] for item in items], out[key]
                  ),
              )
              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 4 for calling a global function with example usage: _concatenate_dict(space, items, out) and returns: OrderedDict