code: def extract_and_process(path_in, path_out):
      
      path_in = os.path.realpath(os.path.expanduser(path_in))
      path_out = os.path.realpath(os.path.expanduser(path_out))
      extract_from_directory(path_in, path_out)
      jsons = glob.glob(os.path.join(path_out, '*.jsonld'))
      logger.info('Found %d JSON-LD files to process in %s' %
                  (len(jsons), path_out))
      stmts = []
      for json in jsons:
          ep = process_json_file(json)
          if ep:
              stmts += ep.statements
      return stmts
docs: Run Eidos on a set of text files and process output with INDRA.
  
      The output is produced in the specified output folder but
      the output files aren't processed by this function.
  
      Parameters
      ----------
      path_in : str
          Path to an input folder with some text files
      path_out : str
          Path to an output folder in which Eidos places the output
          JSON-LD files
  
      Returns
      -------
      stmts : list[indra.statements.Statements]
          A list of INDRA Statements