code: def test_delta_with_time_unit_matches_pandas(es):
      customer_id = 0
      sessions_df = to_pandas(es["sessions"])
      sessions_df = sessions_df[
          sessions_df["customer_id"] == customer_id
      ]
      log_df = to_pandas(es["log"])
      log_df = log_df[log_df["session_id"].isin(sessions_df["id"])]
      all_times = log_df["datetime"].sort_values().tolist()
  
      # 4 observation delta
      value = 4
      unit = "h"
      delta = Timedelta(value, unit)
      neg_delta = -delta
      # first plus 4 obs is fifth
      assert all_times[0] + delta == all_times[0] + pd.Timedelta(
          value, unit
      )
      # using negative
      assert all_times[0] - neg_delta == all_times[0] + pd.Timedelta(
          value, unit
      )
  
      # fifth minus 4 obs is first
      assert all_times[4] - delta == all_times[4] - pd.Timedelta(
          value, unit
      )
      # using negative
      assert all_times[4] + neg_delta == all_times[4] - pd.Timedelta(
          value, unit
      )
  
imports: import pandas
  import pytest
  from dateutil.relativedelta import relativedelta
  from featuretools.entityset import Timedelta
  from featuretools.feature_base import Feature
  from featuretools.primitives import Count
  from featuretools.tests.testing_utils import to_pandas
  from featuretools.utils.wrangle import _check_timedelta
label_desc: Use image node_id 4 for calling a global function with example usage: test_delta_with_time_unit_matches_pandas(es) without return types