code: def write(*args):
      # py2 won't allow optional keyword arg on end, so work around it
      dest = sys.stdout
      if args[-1] == sys.stderr:
          dest = args[-1]
          args = args[:-1]
      dest.write(" ".join(args) + "\n")
      dest.flush()
  
imports: import os
  import sys
  import shlex
  import glob
  import re
  import time
  import zipfile
  import tarfile
  from distutils.command import build_ext, build, sdist
label_desc: Use image node_id 1 for calling a global function with example usage: write() without return types