code: def test_shapes(runner, pixelated_image_file):
      with pytest.warns(None):
          result = runner.invoke(
              main_group,
              ["shapes", "--collection", pixelated_image_file],
          )
  
          assert result.exit_code == 0
          assert result.output.count('"FeatureCollection"') == 1
          assert result.output.count('"Feature"') == 4
          assert np.allclose(
              json.loads(result.output)["features"][0]["geometry"][
                  "coordinates"
              ],
              [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]],
          )
  
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 2 for calling a global function with example usage: test_shapes(runner, pixelated_image_file) without return types