code: def process_text(text, save_xml='cwms_output.xml'):
      
      xml = client.send_query(text, 'cwmsreader')
  
      # There are actually two EKBs in the xml document. Extract the second.
      first_end = xml.find('</ekb>')  # End of first EKB
      second_start = xml.find('<ekb', first_end)  # Start of second EKB
      second_end = xml.find('</ekb>', second_start)  # End of second EKB
      second_ekb = xml[second_start:second_end+len('</ekb>')]  # second EKB
      if save_xml:
          with open(save_xml, 'wb') as fh:
              fh.write(second_ekb.encode('utf-8'))
      return process_ekb(second_ekb)
docs: Processes text using the CWMS web service.
  
      Parameters
      ----------
      text : str
          Text to process
  
      Returns
      -------
      cp : indra.sources.cwms.CWMSProcessor
          A CWMSProcessor, which contains a list of INDRA statements in its
          statements attribute.