code: def create_and_run_collector(document, options):
          
          collector = None
          if not options.report == 'off':
              collector = Collector()
              collector.store.configure(document)
              Event.configure(collector_queue=collector.queue)
              collector.start()
          return collector
docs: Create and run collector process for report data.