code: def not_iterable(cls, add_iter=True):
      """Makes an object non-iterable by raising a TypeError in __iter__ and suppressing
      the detection of the object as an instance of collections.abc.Iterable.
      """
      _hook_iterable_check()
      if add_iter:
          cls.__iter__ = _NotIterable.__iter__
      global _not_iterable
      s = set(_not_iterable)
      s.add(cls)
      _not_iterable = tuple(s)
  
imports: import collections.abc
label_desc: Use image node_id 3 for calling a global function with example usage: not_iterable(cls, add_iter) without return types