code: def _stop_timers(canvas):
      """Stop all timers associated with a canvas."""
      # This is nice and all, but the Canvas object is frozen, so this is never actually used
      for attr in dir(canvas):
          try:
              attr_obj = getattr(canvas, attr)
          except NotImplementedError:
              continue  # prevent error due to props that we don't implement
          else:
              if isinstance(attr_obj, Timer):
                  attr_obj.stop()
  
imports: import asyncio
  from ..base import BaseApplicationBackend, BaseCanvasBackend, BaseTimerBackend
  from ...app import Timer
  from ...util import keys
  from ._offscreen_util import OffscreenContext, FrameBufferHelper
label_desc: Use image node_id 1 for calling a global function with example usage: _stop_timers(canvas) without return types