code: def test_construct_with_weeks_unit_overflow():
      # GH#47268 don't silently wrap around
      with pytest.raises(
          OutOfBoundsTimedelta, match="without overflow"
      ):
          Timedelta(1000000000000000000, unit="W")
  
      with pytest.raises(
          OutOfBoundsTimedelta, match="without overflow"
      ):
          Timedelta(1000000000000000000.0, unit="W")
  
imports: from datetime import timedelta
  from itertools import product
  import numpy
  import pytest
  from pandas._libs.tslibs import OutOfBoundsTimedelta
  from pandas._libs.tslibs.dtypes import NpyDatetimeUnit
  from pandas import Index, NaT, Timedelta, TimedeltaIndex, offsets, to_timedelta
  import pandas._testing
label_desc: Use image node_id 2 for calling a global function with example usage: test_construct_with_weeks_unit_overflow() without return types