code: def test_exception(tmpdir, runner):
      tmpfile = str(tmpdir.mkdir("tests").join("test_exception.shp"))
      result = runner.invoke(
          main_group,
          ["load", "-f", "Shapefile", tmpfile],
          "42",
          catch_exceptions=False,
      )
      assert result.exit_code == 1
  
file_path: Fiona/tests/test_fio_load.py
imports: from functools import partial
  import json
  import os
  import shutil
  import pytest
  import fiona
  from fiona.fio.main import main_group
  from fiona.model import ObjectEncoder
label_desc: Use image node_id 2 for calling a global function with example usage: test_exception(tmpdir, runner) without return types