code: def get_next_trading_dt(current, interval, trading_calendar):
      next_dt = pd.Timestamp(current).tz_convert(trading_calendar.tz)
  
      while True:
          # Convert timestamp to naive before adding day, otherwise the when
          # stepping over EDT an hour is added.
          next_dt = pd.Timestamp(next_dt.replace(tzinfo=None))
          next_dt = next_dt + interval
          next_dt = pd.Timestamp(next_dt, tz=trading_calendar.tz)
          next_dt_utc = next_dt.tz_convert("UTC")
          if trading_calendar.is_open_on_minute(next_dt_utc):
              break
          next_dt = next_dt_utc.tz_convert(trading_calendar.tz)
  
      return next_dt_utc
  
imports: import pandas
  import numpy
  from datetime import timedelta, datetime
  from catalyst.assets import Asset
  from catalyst.finance.transaction import Transaction
  from catalyst.protocol import Event, DATASOURCE_TYPE
  from catalyst.sources import SpecificEquityTrades
  from catalyst.finance.trading import SimulationParameters
  from catalyst.sources.test_source import create_trade
  from catalyst.data.loader import load_from_yahoo, load_bars_from_yahoo
  from catalyst.utils.calendars import get_calendar
  from catalyst.utils.input_validation import expect_types
label_desc: Use image node_id 2 for calling a global function with example usage: get_next_trading_dt(current, interval, trading_calendar) and returns: next_dt_utc