original_docstring: 
      using given generator, wait for it to raise StopIteration, which
      indicates that docker has finished with processing
  
      :return: list of str, logs
      
docstring: using given generator, wait for it to raise StopIteration, which
  indicates that docker has finished with processing
docstring_tokens: using given generator wait for it to raise StopIteration which indicates that docker has finished with processing
code: def wait_for_command(logs_generator):
      """
      using given generator, wait for it to raise StopIteration, which
      indicates that docker has finished with processing
  
      :return: list of str, logs
      """
      logger.info("wait_for_command")
      cr = CommandResult()
      while True:
          try:
              item = next(logs_generator)  # py2 & 3 compat
              cr.parse_item(item)
          except StopIteration:
              logger.info("no more logs")
              break
      return cr
code_tokens: def wait_for_command ( logs_generator ) : logger . info ( "wait_for_command" ) cr = CommandResult ( ) while True : try : item = next ( logs_generator ) cr . parse_item ( item ) except StopIteration : logger . info ( "no more logs" ) break return cr
short_docstring: using given generator, wait for it to raise StopIteration, which
  indicates that docker has finished with processing
short_docstring_tokens: using given generator wait for it to raise StopIteration which indicates that docker has finished with processing
comment: """
      using given generator, wait for it to raise StopIteration, which
      indicates that docker has finished with processing
  
      :return: list of str, logs
      """$SEP$# py2 & 3 compat