class_docstr: TestEventFile handles caching results of test events within a test file
class_docstr_tok: ["TestEventFile","handles","caching","results","of","test","events","within","a","test","file"]
code: def process_file(self, config, verbose, with_rules):
      for idx, event in enumerate(self.load_file()):
          test_result = TestResult(idx, event, verbose, with_rules)
          self._results.append(test_result)
          if test_result.prepare(config):
              yield test_result
  
file_path: streamalert/streamalert_cli/test/event_file.py
imports: import json
  from streamalert.shared.logger import get_logger
  from streamalert_cli.test.results import TestResult
  from streamalert_cli.test.format import format_red, format_underline
label_desc: Use image node_id 10 for calling the TestEventFile obj's underlying member method code with example usage: obj.process_file(config, verbose, with_rules) without return types