code: def implements_iterator(it):
      """Turn things with a __next__ attribute into iterators on Python 2."""
      if PY2 and not hasattr(it, "next") and hasattr(it, "__next__"):
          it.next = it.__next__
      return it
  
imports: from __future__ import absolute_import, division, print_function
  import array
  import codecs
  import importlib
  import inspect
  import math
  import platform
  import re
  import sys
  import time
  from base64 import b64encode
  from collections import namedtuple
label_desc: Use image node_id 9 for calling a global function with example usage: implements_iterator(it) and returns: it