code: def test_ints_to_pytimedelta(unit):
      # tests for non-nanosecond cases
      arr = np.arange(6, dtype=np.int64).view(f"m8[{unit}]")
  
      res = ints_to_pytimedelta(arr, box=False)
      # For non-nanosecond, .astype(object) gives pytimedelta objects
      #  instead of integers
      expected = arr.astype(object)
      tm.assert_numpy_array_equal(res, expected)
  
      res = ints_to_pytimedelta(arr, box=True)
      expected = np.array([Timedelta(x) for x in arr], dtype=object)
      tm.assert_numpy_array_equal(res, expected)
  
file_path: pandas/pandas/tests/tslibs/test_timedeltas.py
imports: import re
  import numpy
  import pytest
  from pandas._libs.tslibs.timedeltas import array_to_timedelta64, delta_to_nanoseconds, ints_to_pytimedelta
  from pandas import Timedelta, offsets
  import pandas._testing
label_desc: Use image node_id 7 for calling a global function with example usage: test_ints_to_pytimedelta(unit) without return types