code: def _start_recording(self, *args, **kwargs):
          
          while not self._cmds_q.empty():
              self._cmds_q.get_nowait()
          while not self._data_qs[self._cur_data_segment].empty():
              self._data_qs[self._cur_data_segment].get_nowait()
  
          self._args = args
          self._kwargs = kwargs
  
          self._recording = True
          self.start()
docs: Starts recording
          Parameters
          ----------
              *args : any
                      Ordinary args used for calling the specified data sampler method
              **kwargs : any
                      Keyword args used for calling the specified data sampler method