code: def test_floordiv_timedeltalike(self, td):
      assert td // td == 1
      assert (2.5 * td) // td == 2
  
      other = Timedelta(td._value)
      msg = "Cannot cast 106752 days 00:00:00 to unit='ns' without overflow"
      with pytest.raises(OutOfBoundsTimedelta, match=msg):
          td // other
  
      # Timedelta(other.to_pytimedelta()) has microsecond resolution,
      #  so the floordiv doesn't require casting all the way to nanos,
      #  so succeeds
      res = other.to_pytimedelta() // td
      assert res == 0
  
      # if there's no overflow, we cast to the higher reso
      left = Timedelta._from_value_and_reso(
          50050, NpyDatetimeUnit.NPY_FR_us.value
      )
      right = Timedelta._from_value_and_reso(
          50, NpyDatetimeUnit.NPY_FR_ms.value
      )
      result = left // right
      assert result == 1
      result = right // left
      assert result == 0
  
imports: from datetime import timedelta
  import sys
  from hypothesis import given, strategies
  import numpy
  import pytest
  from pandas._libs import lib
  from pandas._libs.tslibs import NaT, iNaT
  from pandas._libs.tslibs.dtypes import NpyDatetimeUnit
  from pandas.errors import OutOfBoundsTimedelta
  from pandas import Timedelta, to_timedelta
  import pandas._testing
label_desc: Use image node_id 14 for calling the TestNonNano obj's underlying member method code with example usage: obj.test_floordiv_timedeltalike(td) without return types