code: def test_shapes_sequence(runner, pixelated_image_file):
      """
      --sequence option should produce 4 features in series rather than
      inside a feature collection.
      """
      with pytest.warns(None):
          result = runner.invoke(
              main_group,
              [
                  "shapes",
                  "--collection",
                  pixelated_image_file,
                  "--sequence",
              ],
          )
  
          assert result.exit_code == 0
          assert result.output.count('"FeatureCollection"') == 0
          assert result.output.count('"Feature"') == 4
          assert result.output.count("\n") == 4
  
file_path: rasterio/tests/test_rio_shapes.py
imports: import json
  import re
  import numpy
  import pytest
  import rasterio
  from rasterio.rio.main import main_group
label_desc: Use image node_id 4 for calling a global function with example usage: test_shapes_sequence(runner, pixelated_image_file) without return types