code: def key_value_entry() -> Generator[KeyValueEntry, None, None]:
      from superset.key_value.models import KeyValueEntry
  
      entry = KeyValueEntry(
          id=ID_KEY,
          uuid=UUID_KEY,
          resource=RESOURCE,
          value=bytes(json.dumps(JSON_VALUE), encoding="utf-8"),
      )
      db.session.add(entry)
      db.session.commit()
      yield entry
      db.session.delete(entry)
      db.session.commit()
  
file_path: superset/tests/integration_tests/key_value/commands/fixtures.py
imports: from __future__ import annotations
  import json
  from collections.abc import Generator
  from typing import TYPE_CHECKING
  from uuid import UUID
  import pytest
  from flask_appbuilder.security.sqla.models import User
  from sqlalchemy.orm import Session
  from superset.extensions import db
  from superset.key_value.types import JsonKeyValueCodec, KeyValueResource, PickleKeyValueCodec
  from tests.integration_tests.test_app import app
label_desc: Use image node_id 1 for calling a global function with example usage: key_value_entry() without return types