code: def test_create_fail_json_entry(
      app_context: AppContext, admin: User
  ) -> None:
      from superset.commands.key_value.create import (
          CreateKeyValueCommand,
      )
  
      with pytest.raises(KeyValueCreateFailedError):
          CreateKeyValueCommand(
              resource=RESOURCE,
              value=PICKLE_VALUE,
              codec=JSON_CODEC,
          ).run()
  
file_path: superset/tests/integration_tests/key_value/commands/create_test.py
imports: from __future__ import annotations
  import json
  import pickle
  import pytest
  from flask.ctx import AppContext
  from flask_appbuilder.security.sqla.models import User
  from superset.extensions import db
  from superset.key_value.exceptions import KeyValueCreateFailedError
  from superset.utils.core import override_user
  from tests.integration_tests.key_value.commands.fixtures import admin, JSON_CODEC, JSON_VALUE, PICKLE_CODEC, PICKLE_VALUE, RESOURCE
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_fail_json_entry(app_context, admin) without return types