code: def timedelta_to_integral_seconds(delta):
      """
      Convert a pd.Timedelta to a number of seconds as an int.
      """
      return int(delta.total_seconds())
  
imports: from contextlib import contextmanager
  from copy import deepcopy
  from itertools import product
  import operator
  import warnings
  import numpy
  import pandas
  from distutils.version import StrictVersion
  from trading_calendars.utils.pandas_utils import days_at_time
label_desc: Use image node_id 7 for calling a global function with example usage: timedelta_to_integral_seconds(delta) and returns: int