code: def is_iterator(obj):
      """
      Args:
          obj: Any object.
  
      Returns:
          Boolean representing whether or not 'obj' is an iterator.
      """
      return (
          hasattr(obj, "__next__") or hasattr(obj, "next")
      ) and hasattr(obj, "__iter__")
  
imports: import base64
  import inspect
  import logging
  import socket
  import subprocess
  import uuid
  from contextlib import closing
  from itertools import islice
  from sys import version_info
label_desc: Use image node_id 13 for calling a global function with example usage: is_iterator(obj) and returns: unknown