code: def test_load_raw_arrays(self):
      outer_sessions = self.trading_calendar.sessions_in_range(
          self.START_DATE, self.END_DATE
      )
  
      result = self.reader.load_raw_arrays(
          OHLCV, self.START_DATE, self.END_DATE, [1, 2]
      )
  
      opens = DataFrame(
          data=result[0], index=outer_sessions, columns=[1, 2]
      )
      opens_with_price = opens.dropna()
  
      self.assertEqual(
          21,
          len(opens),
          "The reindexed result should have 21 days, which is the number of "
          "business days in 2015-11",
      )
      self.assertEqual(
          20,
          len(opens_with_price),
          "The reindexed result after dropping nans should have 20 days, "
          "because Thanksgiving is a NYSE holiday.",
      )
  
      tday = pd.Timestamp("2015-11-26", tz="UTC")
  
      # Thanksgiving, 2015-11-26.
      # Is a holiday in NYSE, but not in us_futures.
      tday_loc = outer_sessions.get_loc(tday)
  
      assert_almost_equal(
          nan,
          opens[1][tday_loc],
          err_msg="2015-11-26 should be `nan`, since Thanksgiving is a "
          "holiday in the reader's calendar.",
      )
  
      # Thanksgiving, 2015-11-26.
      # Is a holiday in NYSE, but not in us_futures.
      tday_loc = outer_sessions.get_loc(
          pd.Timestamp("2015-11-26", tz="UTC")
      )
  
      assert_almost_equal(
          nan,
          opens[1][tday_loc],
          err_msg="2015-11-26 should be `nan`, since Thanksgiving is a "
          "holiday in the reader's calendar.",
      )
  
imports: from collections import OrderedDict
  from numbers import Real
  from nose_parameterized import parameterized
  from numpy.testing import assert_almost_equal
  from numpy import nan, array, full, isnan
  import pandas
  from pandas import DataFrame
  from six import iteritems
  from catalyst.data.resample import minute_frame_to_session_frame, DailyHistoryAggregator, MinuteResampleSessionBarReader, ReindexMinuteBarReader, ReindexSessionBarReader
  from catalyst.testing import parameter_space
  from catalyst.testing.fixtures import WithEquityMinuteBarData, WithBcolzEquityMinuteBarReader, WithBcolzEquityDailyBarReader, WithBcolzFutureMinuteBarReader, CatalystTestCase
label_desc: Use image node_id 2 for calling the TestReindexSessionBars obj's underlying member method code with example usage: obj.test_load_raw_arrays() without return types