code: def animate():
      if button.label == "► Play":
          button.label = "❚❚ Pause"
          curdoc().add_periodic_callback(animate_update, 200)
      else:
          button.label = "► Play"
          curdoc().remove_periodic_callback(animate_update)
  
file_path: holoviews/examples/reference/apps/bokeh/player.py
imports: import numpy
  import holoviews
  from bokeh.io import curdoc
  from bokeh.layouts import layout
  from bokeh.models import Slider, Button
label_desc: Use image node_id 3 for calling a global function with example usage: animate() without return types