code: def stdout(self):
          
          stream = self._log_file_handle if self._log_file_handle else osutils.stdout()
          return StreamWriter(stream, self._is_debugging)
docs: Returns stream writer for stdout to output Lambda function logs to
  
          Returns
          -------
          samcli.lib.utils.stream_writer.StreamWriter
              Stream writer for stdout