code: def _test_validate_data(self):
      exchange_name = "bitfinex"
      data_frequency = "minute"
  
      exchange = get_exchange(exchange_name)
      exchange_bundle = ExchangeBundle(exchange)
      assets = [exchange.get_asset("iot_btc")]
  
      end_dt = pd.to_datetime("2017-9-2 1:00", utc=True)
      bar_count = 60
  
      bundle_series = exchange_bundle.get_history_window_series(
          assets=assets,
          end_dt=end_dt,
          bar_count=bar_count * 5,
          field="close",
          data_frequency="minute",
      )
      candles = exchange.get_candles(
          assets=assets, end_dt=end_dt, bar_count=bar_count, freq="1T"
      )
      start_dt = get_start_dt(end_dt, bar_count, data_frequency)
  
      frames = []
      for asset in assets:
          bundle_df = pd.DataFrame(
              data=dict(bundle_price=bundle_series[asset]),
              index=bundle_series[asset].index,
          )
          exchange_series = exchange.get_series_from_candles(
              candles=candles[asset],
              start_dt=start_dt,
              end_dt=end_dt,
              data_frequency=data_frequency,
              field="close",
          )
          exchange_df = pd.DataFrame(
              data=dict(exchange_price=exchange_series),
              index=exchange_series.index,
          )
  
          df = exchange_df.join(bundle_df, how="left")
          df["last_traded"] = df.index
          df["asset"] = asset.symbol
          df.set_index(["asset", "last_traded"], inplace=True)
  
          frames.append(df)
  
      df = pd.concat(frames)
      print("\n" + df_to_string(df))
      pass
  
imports: import os
  import tempfile
  from logging import getLogger
  import pandas
  from catalyst.exchange.exchange_bcolz import BcolzExchangeBarReader, BcolzExchangeBarWriter
  from catalyst.exchange.exchange_bundle import ExchangeBundle, BUNDLE_NAME_TEMPLATE
  from catalyst.exchange.utils.bundle_utils import get_bcolz_chunk, get_df_from_arrays
  from catalyst.exchange.utils.datetime_utils import get_start_dt
  from catalyst.exchange.utils.exchange_utils import get_exchange_folder
  from catalyst.exchange.utils.factory import get_exchange
  from catalyst.exchange.utils.stats_utils import df_to_string
  from catalyst.utils.paths import ensure_directory
label_desc: Use image node_id 10 for calling the TestExchangeBundle obj's underlying member method code with example usage: obj._test_validate_data() without return types