code: def test_minute_to_session(self):
      for sid in self.ASSET_FINDER_EQUITY_SIDS:
          frame = self.equity_frames[sid]
          expected = EXPECTED_SESSIONS[sid]
          result = minute_frame_to_session_frame(
              frame, self.nyse_calendar
          )
          assert_almost_equal(
              expected.values,
              result.values,
              err_msg="sid={0}".format(sid),
          )
  
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 3 for calling the TestMinuteToSession obj's underlying member method code with example usage: obj.test_minute_to_session() without return types