class_docstr: Inference task.
class_docstr_tok: ["Inference","task","."]
code: def __call__(self, model):
      samples = self.audio_chunk.samples[:, 0]
      self.result = model.infer(samples)
      self.timestep = model.get_timestep()
  
imports: import multiprocessing
  import threading
  from absl import app
  from absl import flags
  import attr
  from colorama import Fore
  from colorama import Style
  from magenta.models.onsets_frames_transcription.realtime import audio_recorder
  from magenta.models.onsets_frames_transcription.realtime import tflite_model
  import numpy
label_desc: Use image node_id 2 for calling the OnsetsTask obj's underlying member method code with example usage: obj.__call__(model) without return types