code: def plt_loop(count=None, sleep_time=1, plt_pause=0.01):
      import matplotlib.pyplot as plt  # delayed import due to matplotlib threading issue
  
      # plt.ion()
      # plt.show(block=False)
      while (count is None or count > 0) and not plt.waitforbuttonpress(
          plt_pause
      ):
          # plt.draw()
          plt.pause(plt_pause)
          time.sleep(sleep_time)
          if count is not None:
              count = count - 1
  
file_path: tensorwatch/tensorwatch/image_utils.py
imports: import numpy
  import math
  import time
label_desc: Use image node_id 10 for calling a global function with example usage: plt_loop(count, sleep_time, plt_pause) without return types