code: def test_create_shared_memory_custom_space(n, ctx, space):
      ctx = mp if (ctx is None) else mp.get_context(ctx)
      with pytest.raises(CustomSpaceError):
          create_shared_memory(space, n=n, ctx=ctx)
  
file_path: gym/tests/vector/test_shared_memory.py
imports: import multiprocessing
  from collections import OrderedDict
  from multiprocessing import Array, Process
  from multiprocessing.sharedctypes import SynchronizedArray
  import numpy
  import pytest
  from gym.error import CustomSpaceError
  from gym.spaces import Dict, Tuple
  from gym.vector.utils.shared_memory import create_shared_memory, read_from_shared_memory, write_to_shared_memory
  from gym.vector.utils.spaces import BaseGymSpaces
  from tests.vector.utils import custom_spaces, spaces
label_desc: Use image node_id 2 for calling a global function with example usage: test_create_shared_memory_custom_space(n, ctx, space) without return types