code: def untokenize(iterable):
      """Transform tokens back into Python source code.
      It returns a bytes object, encoded using the ENCODING
      token, which is the first token sequence output by tokenize.
  
      Each element returned by the iterable must be a token sequence
      with at least two elements, a token number and token value.  If
      only two tokens are passed, the resulting output is poor.
  
      Round-trip invariant for full input:
          Untokenized source will match input source exactly
  
      Round-trip invariant for limited input:
          # Output bytes will tokenize back to the input
          t1 = [tok[:2] for tok in tokenize(f.readline)]
          newcode = untokenize(t1)
          readline = BytesIO(newcode).readline
          t2 = [tok[:2] for tok in tokenize(readline)]
          assert t1 == t2
      """
      ut = Untokenizer()
      out = ut.untokenize(iterable)
      if ut.encoding is not None:
          out = out.encode(ut.encoding)
      return out
  
imports: from builtins import open
  from codecs import lookup, BOM_UTF8
  import collections
  import functools
  from io import TextIOWrapper
  import itertools
  import re
  import sys
  from token import *
  from token import EXACT_TOKEN_TYPES
  import token
label_desc: Use image node_id 6 for calling a global function with example usage: untokenize(iterable) and returns: out