code: def _process_write(space, i, shared_memory, sample):
      write_to_shared_memory(space, i, sample, shared_memory)
  
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 5 for calling a global function with example usage: _process_write(space, i, shared_memory, sample) without return types