code: def convert_timedelta_type(
      obj: dt.timedelta | np.timedelta64,
  ) -> float:
      """Convert any recognized timedelta value to floating point absolute
      milliseconds.
  
      Args:
          obj (object) : the object to convert
  
      Returns:
          float : milliseconds
  
      """
      if isinstance(obj, dt.timedelta):
          return obj.total_seconds() * 1000.0
      elif isinstance(obj, np.timedelta64):
          return float(obj / NP_MS_DELTA)
  
      raise ValueError(f"Unknown timedelta object: {obj!r}")
  
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 6 for calling a global function with example usage: convert_timedelta_type(obj) and returns: unknown, float