code: def test_map_overlap_errors():
      # Non-integer
      with pytest.raises(ValueError):
          ddf.map_overlap(shifted_sum, 0.5, 3, 0, 2, c=2)
  
      # Negative
      with pytest.raises(ValueError):
          ddf.map_overlap(shifted_sum, 0, -5, 0, 2, c=2)
  
      # Partition size < window size
      with pytest.raises(NotImplementedError):
          ddf.map_overlap(shifted_sum, 0, 100, 0, 100, c=2).compute()
  
      # Timedelta offset with non-datetime
      with pytest.raises(TypeError):
          ddf.map_overlap(
              shifted_sum,
              pd.Timedelta("1s"),
              pd.Timedelta("1s"),
              0,
              2,
              c=2,
          )
  
      # String timedelta offset with non-datetime
      with pytest.raises(TypeError):
          ddf.map_overlap(shifted_sum, "1s", "1s", 0, 2, c=2)
  
imports: from __future__ import annotations
  import contextlib
  import datetime
  import numpy
  import pandas
  import pytest
  import dask.dataframe
  from dask.dataframe._compat import PANDAS_GE_210
  from dask.dataframe.utils import assert_eq
label_desc: Use image node_id 5 for calling a global function with example usage: test_map_overlap_errors() without return types