code: def test_autodetect_format(tmpdir, runner, extension, driver):
      outputname = str(tmpdir.join("test.{}".format(extension)))
      result = runner.invoke(
          main_group, ["convert", "tests/data/RGB.byte.tif", outputname]
      )
      assert result.exit_code == 0
      with rasterio.open(outputname) as src:
          assert src.driver == driver
  
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 4 for calling a global function with example usage: test_autodetect_format(tmpdir, runner, extension, driver) without return types