code: def test_collect_rec_buffered(feature_seq):
      runner = CliRunner()
      result = runner.invoke(
          main_group, ["collect", "--record-buffered"], feature_seq
      )
      assert result.exit_code == 0
      assert '"FeatureCollection"' in result.output
  
file_path: Fiona/tests/test_fio_collect.py
imports: import json
  import sys
  from click.testing import CliRunner
  import pytest
  from fiona.fio.main import main_group
label_desc: Use image node_id 4 for calling a global function with example usage: test_collect_rec_buffered(feature_seq) without return types