def test_shapes_sampling(runner, pixelated_image_file):
    result = runner.invoke(
        main_group, ['shapes', pixelated_image_file, '--sampling', 2])

    assert result.exit_code == 0
    assert result.output.count('"FeatureCollection"') == 1
    assert result.output.count('"Feature"') == 2
Returns True if `x` is an instance of a string.
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_features.py/test_shapes_sampling--crossover with--dataset/ETHPy150Open inpho/vsm/vsm/viewer/types.py/isstr