code: def test_groupby_consecutive(self, transactions, expected):
      grouped_txn = _groupby_consecutive(transactions)
      assert_frame_equal(
          grouped_txn.sort_index(axis="columns"),
          expected.sort_index(axis="columns"),
      )
  
file_path: pyfolio/pyfolio/tests/test_round_trips.py
imports: from nose_parameterized import parameterized
  from unittest import TestCase
  from pandas import Series, DataFrame, DatetimeIndex, date_range, Timedelta, read_csv
  from pandas.util.testing import assert_frame_equal
  import os
  import gzip
  from pyfolio.round_trips import extract_round_trips, add_closing_transactions, _groupby_consecutive
label_desc: Use image node_id 1 for calling the RoundTripTestCase obj's underlying member method code with example usage: obj.test_groupby_consecutive(transactions, expected) without return types