code: def test_time_interval_add_subtract_timedelta(
      self, interval, delta, method
  ):
      # https://github.com/pandas-dev/pandas/issues/32023
      result = getattr(interval, method)(delta)
      left = getattr(interval.left, method)(delta)
      right = getattr(interval.right, method)(delta)
      expected = Interval(left, right)
  
      assert result == expected
  
file_path: pandas/pandas/tests/scalar/interval/test_arithmetic.py
imports: from datetime import timedelta
  import numpy
  import pytest
  from pandas import Interval, Timedelta, Timestamp
  import pandas._testing
label_desc: Use image node_id 6 for calling the TestIntervalArithmetic obj's underlying member method code with example usage: obj.test_time_interval_add_subtract_timedelta(interval, delta, method) without return types