code: def test_tags_callback_err():
      ctx = MockContext()
      ctx.obj["like"] = {"tags": {"foo": "bar"}}
      with pytest.raises(click.BadParameter):
          tags_handler(ctx, MockOption("tags"), "?") == {"foo": "bar"}
  
imports: import json
  import click
  import numpy
  import pytest
  import rasterio
  from rasterio.enums import ColorInterp
  from rasterio.rio.edit_info import all_handler, crs_handler, tags_handler, transform_handler, colorinterp_handler
  from rasterio.rio.main import main_group
  import rasterio.shutil
label_desc: Use image node_id 39 for calling a global function with example usage: test_tags_callback_err() without return types