code: def assert_near_timedeltas(t1, t2, atol=2000):
      if is_scalar(t1):
          t1 = pd.Series([t1])
      if is_scalar(t2):
          t2 = pd.Series([t2])
  
      assert t1.dtype == t2.dtype
      assert_eq(pd.to_numeric(t1), pd.to_numeric(t2), atol=atol)
  
imports: from __future__ import annotations
  import contextlib
  import warnings
  from datetime import datetime
  import numpy
  import pandas
  import pytest
  from pandas.api.types import is_scalar
  import dask.dataframe
  from dask.array.numpy_compat import _numpy_125
  from dask.dataframe._compat import PANDAS_GE_140, PANDAS_GE_150, PANDAS_GE_200, PANDAS_VERSION, check_numeric_only_deprecation
  from dask.dataframe.utils import assert_dask_graph, assert_eq, make_meta, pyarrow_strings_enabled
label_desc: Use image node_id 30 for calling a global function with example usage: assert_near_timedeltas(t1, t2, atol) without return types