code: def Write(self, string):
      
      if sys.version_info[0] < 3:
        super(StdoutOutputWriter, self).Write(string)
      else:
        # sys.stdout.write() on Python 3 by default will error if string is
        # of type bytes.
        sys.stdout.write(string)
docs: Writes a string to the output.
  
      Args:
        string (str): output.