code: def is_timedelta_type(
      obj: Any,
  ) -> TypeGuard[dt.timedelta | np.timedelta64]:
      """Whether an object is any timedelta type recognized by Bokeh.
  
      Args:
          obj (object) : the object to test
  
      Returns:
          bool : True if ``obj`` is a timedelta type
  
      """
      return isinstance(obj, (dt.timedelta, np.timedelta64))
  
imports: from __future__ import annotations
  import logging
  import datetime
  import uuid
  from functools import lru_cache
  from threading import Lock
  from typing import TYPE_CHECKING, Any
  import numpy
  from ..core.types import ID
  from ..settings import settings
  from .strings import format_docstring
label_desc: Use image node_id 4 for calling a global function with example usage: is_timedelta_type(obj) and returns: isinstance