code: def _read_dict_from_shared_memory(space, shared_memory, n: int = 1):
      return OrderedDict(
          [
              (
                  key,
                  read_from_shared_memory(
                      subspace, shared_memory[key], n=n
                  ),
              )
              for (key, subspace) in space.spaces.items()
          ]
      )
  
file_path: gym/gym/vector/utils/shared_memory.py
imports: import multiprocessing
  from collections import OrderedDict
  from ctypes import c_bool
  from functools import singledispatch
  from typing import Union
  import numpy
  from gym.error import CustomSpaceError
  from gym.spaces import Box, Dict, Discrete, MultiBinary, MultiDiscrete, Space, Tuple
label_desc: Use image node_id 8 for calling a global function with example usage: _read_dict_from_shared_memory(space, shared_memory, n) and returns: OrderedDict