def METHOD_NAME(key, value):
    try:
        json_value = json.loads(value)
    except ValueError as e:
        if not (value.startswith('"') and value.endswith('"')):
            raise click.BadParameter(
                "if the attribute's value is a string, consider wrapping it in quotes."
            )
        else:
            raise e
    else:
        model_version.add_attribute(key, json_value, overwrite=overwrite)