code: def test_2012(self):
      # holidays we expect:
      holidays_2012 = [
          pd.Timestamp("2012-01-02", tz="UTC"),
          pd.Timestamp("2012-01-16", tz="UTC"),
          pd.Timestamp("2012-02-20", tz="UTC"),
          pd.Timestamp("2012-04-06", tz="UTC"),
          pd.Timestamp("2012-05-28", tz="UTC"),
          pd.Timestamp("2012-07-04", tz="UTC"),
          pd.Timestamp("2012-09-03", tz="UTC"),
          pd.Timestamp("2012-11-22", tz="UTC"),
          pd.Timestamp("2012-12-25", tz="UTC"),
      ]
  
      for session_label in holidays_2012:
          self.assertNotIn(session_label, self.calendar.all_sessions)
  
      # early closes we expect:
      early_closes_2012 = [
          pd.Timestamp("2012-07-03", tz="UTC"),
          pd.Timestamp("2012-11-23", tz="UTC"),
          pd.Timestamp("2012-12-24", tz="UTC"),
      ]
  
      for early_close_session_label in early_closes_2012:
          self.assertIn(
              early_close_session_label, self.calendar.early_closes
          )
  
file_path: catalyst/tests/calendars/test_nyse_calendar.py
imports: from unittest import TestCase
  import pandas
  from .test_trading_calendar import ExchangeCalendarTestBase
  from catalyst.utils.calendars.exchange_calendar_nyse import NYSEExchangeCalendar
label_desc: Use image node_id 1 for calling the NYSECalendarTestCase obj's underlying member method code with example usage: obj.test_2012() without return types