code: def test_sample_bidx(runner):
      result = runner.invoke(
          main_group,
          [
              "sample",
              "tests/data/RGB.byte.tif",
              "--bidx",
              "1,2",
              "[220650.0, 2719200.0]",
          ],
          catch_exceptions=False,
      )
      assert result.exit_code == 0
      assert result.output.strip() == "[18, 25]"
  
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 4 for calling a global function with example usage: test_sample_bidx(runner) without return types