code: def _iterate_custom(space, items):
      raise CustomSpaceError(
          f"Unable to iterate over {items}, since {space} "
          "is a custom `gym.Space` instance (i.e. not one of "
          "`Box`, `Dict`, etc...)."
      )
  
imports: from collections import OrderedDict
  from copy import deepcopy
  from functools import singledispatch
  from typing import Iterator
  import numpy
  from gym.error import CustomSpaceError
  from gym.spaces import Box, Dict, Discrete, MultiBinary, MultiDiscrete, Space, Tuple
label_desc: Use image node_id 14 for calling a global function with example usage: _iterate_custom(space, items) without return types