code: def flush(self):
      data = {}
  
      for key, ind_values in self.indicators.items():
          data[key] = ind_values
  
      self.indicators = {}
  
      self.thread.push({"packet": {"track": data, "time": time.time()}})
      if not self.is_thread_started:
          self.is_thread_started = True
          self.thread.start()
  
imports: import json
  import threading
  import time
  from pathlib import PurePath
  from queue import Queue
  from typing import Dict, Optional
  from .None import Writer
  from ..indicators import Indicator
  from ..indicators.numeric import NumericIndicator
  from ...util.values import to_numpy
label_desc: Use image node_id 5 for calling the Writer obj's underlying member method code with example usage: obj.flush() without return types