code: def test_create_uuid_entry(
      app_context: AppContext, admin: User
  ) -> None:
      from superset.commands.key_value.create import (
          CreateKeyValueCommand,
      )
      from superset.key_value.models import KeyValueEntry
  
      with override_user(admin):
          key = CreateKeyValueCommand(
              resource=RESOURCE, value=JSON_VALUE, codec=JSON_CODEC
          ).run()
      entry = (
          db.session.query(KeyValueEntry).filter_by(uuid=key.uuid).one()
      )
      assert json.loads(entry.value) == JSON_VALUE
      assert entry.created_by_fk == admin.id
      db.session.delete(entry)
      db.session.commit()
  
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 2 for calling a global function with example usage: test_create_uuid_entry(app_context, admin) without return types