code: def test_format_short(tmpdir, runner):
      outputname = str(tmpdir.join("test.jpg"))
      result = runner.invoke(
          main_group,
          [
              "convert",
              "tests/data/RGB.byte.tif",
              outputname,
              "-f",
              "JPEG",
          ],
      )
      assert result.exit_code == 0
      with rasterio.open(outputname) as src:
          assert src.driver == "JPEG"
  
file_path: rasterio/tests/test_rio_convert.py
imports: import pytest
  import rasterio
  from rasterio.rio.main import main_group
label_desc: Use image node_id 3 for calling a global function with example usage: test_format_short(tmpdir, runner) without return types