code: def get_errors(error_string):
      '''
      returns all lines in the error_string that start with the string "error"
  
      '''
  
      lines = error_string.splitlines()
      error_lines = tuple(line for line in lines if line.find('Error') >= 0)
      if len(error_lines) > 0:
          return '\n'.join(error_lines)
      else:
          return error_string.strip(f get_errors(error_string):
      '''
      returns all lines in the error_string that start with the string "error"
  
      '''
  
      lines = error_string.splitlines()
      error_lines = tuple(line for line in lines if line.find('Error') >= 0)
      if len(error_lines) > 0:
          return '\n'.join(error_lines)
      else:
          return error_string.strip()
docs: returns all lines in the error_string that start with the string "error"