def METHOD_NAME(ctx, param, value):
    """
    @click.option('--range', callback=click_range2d)
    """
    import click
    if value is not None:
        try:
            return parse_range2d_int(value)
        except ValueError as e:
            raise click.ClickException(str(e)) from None