code: def __init__(self, *args, **kwargs):
      self._data_frequency = kwargs.pop("data_frequency", None)
      kwargs.pop("minutes_per_day", None)
      kwargs.pop("calendar", None)
  
      end_session = kwargs.pop("end_session", None)
      if end_session is not None:
          end_session = end_session.floor("1d")
  
      minutes_per_day = 1440 if self._data_frequency == "minute" else 1
      default_ohlc_ratio = kwargs.pop("default_ohlc_ratio", 100000000)
      calendar = get_calendar("OPEN")
  
      super(BcolzExchangeBarWriter, self).__init__(
          *args,
          **dict(
              kwargs,
              minutes_per_day=minutes_per_day,
              default_ohlc_ratio=default_ohlc_ratio,
              calendar=calendar,
              end_session=end_session,
          ),
      )
  
file_path: catalyst/catalyst/exchange/exchange_bcolz.py
imports: import numpy
  from catalyst import get_calendar
  from catalyst.data.minute_bars import BcolzMinuteBarReader, BcolzMinuteBarWriter
label_desc: Use image node_id 1 to create a new BcolzExchangeBarWriter object from inherited base classes: BcolzMinuteBarWriter with example: obj = BcolzExchangeBarWriter()