code: def test_sample_stdin(runner):
      result = runner.invoke(
          main_group,
          ["sample", "tests/data/RGB.byte.tif"],
          "[220650.0, 2719200.0]\n[220650.0, 2719200.0]",
          catch_exceptions=False,
      )
      assert result.exit_code == 0
      assert result.output.strip() == "[18, 25, 14]\n[18, 25, 14]"
  
file_path: rasterio/tests/test_rio_sample.py
imports: import logging
  import sys
  from rasterio.rio.main import main_group
label_desc: Use image node_id 2 for calling a global function with example usage: test_sample_stdin(runner) without return types