code: def _test_validate_bundles(self):
      # exchange_population = 3
      asset_population = 3
      data_frequency = random.choice(["minute"])
  
      # bundle = 'dailyBundle' if data_frequency
      #  == 'daily' else 'minuteBundle'
      # exchanges = select_random_exchanges(
      #     population=exchange_population,
      #     features=[bundle],
      # )  # Type: list[Exchange]
      exchanges = [get_exchange("poloniex", skip_init=True)]
  
      data_portal = TestSuiteBundle.get_data_portal(exchanges)
      for exchange in exchanges:
          exchange.init()
  
          frequencies = exchange.get_candle_frequencies(data_frequency)
          freq = random.sample(frequencies, 1)[0]
          rnd = random.SystemRandom()
          # field = rnd.choice(['open', 'high', 'low', 'close', 'volume'])
          field = rnd.choice(["volume"])
  
          bar_count = random.randint(3, 6)
  
          assets = select_random_assets(
              exchange.assets, asset_population
          )
          end_dt = None
          for asset in assets:
              attribute = "end_{}".format(data_frequency)
              asset_end_dt = getattr(asset, attribute)
  
              if end_dt is None or asset_end_dt < end_dt:
                  end_dt = asset_end_dt
  
          end_dt = end_dt + timedelta(minutes=3)
          dt_range = pd.date_range(
              end=end_dt, periods=bar_count, freq=freq
          )
          self.compare_bundle_with_exchange(
              exchange=exchange,
              assets=assets,
              end_dt=dt_range[-1],
              bar_count=bar_count,
              freq=freq,
              data_frequency=data_frequency,
              data_portal=data_portal,
              field=field,
          )
      pass
  
file_path: catalyst/tests/exchange/test_suites/test_suite_bundle.py
imports: import random
  import os
  import pandas
  from datetime import timedelta
  from logbook import TestHandler
  from pandas.util.testing import assert_frame_equal
  from catalyst import get_calendar
  from catalyst.exchange.exchange_asset_finder import ExchangeAssetFinder
  from catalyst.exchange.exchange_data_portal import DataPortalExchangeBacktest
  from catalyst.exchange.utils.exchange_utils import get_candles_df
  from catalyst.exchange.utils.factory import get_exchange
  from catalyst.exchange.utils.test_utils import output_df, select_random_assets
  from catalyst.exchange.utils.stats_utils import set_print_settings
label_desc: Use image node_id 4 for calling the TestSuiteBundle obj's underlying member method code with example usage: obj._test_validate_bundles() without return types