code: def test_get_last_traded_dt_minute(self):
      minutes = self.nyse_calendar.minutes_for_session(
          self.trading_days[2]
      )
      equity = self.asset_finder.retrieve_asset(1)
      result = self.data_portal.get_last_traded_dt(
          equity, minutes[3], "minute"
      )
      self.assertEqual(
          minutes[3],
          result,
          "Asset 1 had a trade on third minute, so should "
          "return that as the last trade on that dt.",
      )
  
      result = self.data_portal.get_last_traded_dt(
          equity, minutes[5], "minute"
      )
      self.assertEqual(
          minutes[4],
          result,
          "Asset 1 had a trade on fourth minute, so should "
          "return that as the last trade on the fifth.",
      )
  
      future = self.asset_finder.retrieve_asset(10000)
      calendar = self.trading_calendars[Future]
      minutes = calendar.minutes_for_session(self.trading_days[3])
      result = self.data_portal.get_last_traded_dt(
          future, minutes[3], "minute"
      )
  
      self.assertEqual(
          minutes[3],
          result,
          "Asset 10000 had a trade on the third minute, so "
          "return that as the last trade on that dt.",
      )
  
      result = self.data_portal.get_last_traded_dt(
          future, minutes[5], "minute"
      )
      self.assertEqual(
          minutes[4],
          result,
          "Asset 10000 had a trade on fourth minute, so should "
          "return that as the last trade on the fifth.",
      )
  
imports: from collections import OrderedDict
  from numpy import array, append, nan, full
  from numpy.testing import assert_almost_equal
  import pandas
  from pandas import Timedelta
  from six import iteritems
  from zipline.assets import Equity, Future
  from zipline.data.data_portal import HISTORY_FREQUENCIES, OHLCV_FIELDS
  from zipline.data.minute_bars import FUTURES_MINUTES_PER_DAY, US_EQUITIES_MINUTES_PER_DAY
  from zipline.testing import parameter_space
  from zipline.testing.fixtures import ZiplineTestCase, WithTradingSessions, WithDataPortal, alias
  from zipline.testing.predicates import assert_equal
  from zipline.utils.numpy_utils import float64_dtype
label_desc: Use image node_id 14 for calling the DataPortalTestBase obj's underlying member method code with example usage: obj.test_get_last_traded_dt_minute() without return types