code: def test_err(data, runner):
      inputfile = str(data.join("RGB.byte.tif"))
      result = runner.invoke(
          cli, ["overview", inputfile, "--build", "a^2"]
      )
      assert result.exit_code == 2
      assert "must match" in result.output
  
file_path: rasterio/tests/test_rio_overview.py
imports: import logging
  import sys
  import pytest
  from rasterio.rio.main import main_group
  from rasterio.rio.overview import get_maximum_overview_level
label_desc: Use image node_id 1 for calling a global function with example usage: test_err(data, runner) without return types