code: def _create_tuple_shared_memory(space, n: int = 1, ctx=mp):
      return tuple(
          create_shared_memory(subspace, n=n, ctx=ctx)
          for subspace in space.spaces
      )
  
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 3 for calling a global function with example usage: _create_tuple_shared_memory(space, n, ctx) and returns: tuple