class_docstr_tok: []
docstr_tok: []
code: def remove_session_callback(
      self, callback_obj: SessionCallback
  ) -> None:
      """ """
      # we may be called multiple times because of multiple
      # views on a document - the document has to notify that
      # the callback was removed even if only one view invoked
      # it. So we need to silently no-op if we're already
      # removed.
      try:
          if isinstance(callback_obj, PeriodicCallback):
              self._group.remove_periodic_callback(callback_obj.id)
          elif isinstance(callback_obj, TimeoutCallback):
              self._group.remove_timeout_callback(callback_obj.id)
          elif isinstance(callback_obj, NextTickCallback):
              self._group.remove_next_tick_callback(callback_obj.id)
      except ValueError:
          pass
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Callable, Sequence
  from ..core.types import ID
  from ..util.tornado import _CallbackGroup
label_desc: Use image node_id 5 for calling the DocumentCallbackGroup obj's underlying member method code with example usage: obj.remove_session_callback(callback_obj) without return types