code: def test_get_expired_entry(app_context: AppContext) -> None:
      from superset.commands.key_value.get import GetKeyValueCommand
      from superset.key_value.models import KeyValueEntry
  
      entry = KeyValueEntry(
          id=678,
          uuid=uuid.uuid4(),
          resource=RESOURCE,
          value=bytes(json.dumps(JSON_VALUE), encoding="utf-8"),
          expires_on=datetime.now() - timedelta(days=1),
      )
      db.session.add(entry)
      db.session.commit()
      value = GetKeyValueCommand(
          resource=RESOURCE, key=ID_KEY, codec=JSON_CODEC
      ).run()
      assert value is None
      db.session.delete(entry)
      db.session.commit()
  
file_path: superset/tests/integration_tests/key_value/commands/get_test.py
imports: from __future__ import annotations
  import json
  import uuid
  from datetime import datetime, timedelta
  from typing import TYPE_CHECKING
  from flask.ctx import AppContext
  from superset.extensions import db
  from tests.integration_tests.key_value.commands.fixtures import ID_KEY, JSON_CODEC, JSON_VALUE, key_value_entry, RESOURCE, UUID_KEY
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_expired_entry(app_context) without return types