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
  
file_path: zipline/zipline/utils/factory.py
imports: import pandas
  import numpy
  from datetime import timedelta, datetime
  from trading_calendars import get_calendar
  from zipline.sources import SpecificEquityTrades
  from zipline.finance.trading import SimulationParameters
  from zipline.sources.test_source import create_trade
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