code: def permalink_salt() -> Iterator[str]:
      from superset.key_value.shared_entries import (
          get_permalink_salt,
          get_uuid_namespace,
      )
      from superset.key_value.types import SharedKey
  
      key = SharedKey.DASHBOARD_PERMALINK_SALT
      salt = get_permalink_salt(key)
      yield salt
      namespace = get_uuid_namespace(salt)
      db.session.query(KeyValueEntry).filter_by(
          resource=KeyValueResource.APP,
          uuid=uuid3(namespace, key),
      )
      db.session.commit()
  
file_path: superset/tests/integration_tests/dashboards/permalink/api_tests.py
imports: from collections.abc import Iterator
  from unittest.mock import patch
  from uuid import uuid3
  import pytest
  from flask_appbuilder.security.sqla.models import User
  from sqlalchemy.orm import Session
  from superset import db
  from superset.commands.dashboard.exceptions import DashboardAccessDeniedError
  from superset.key_value.models import KeyValueEntry
  from superset.key_value.types import KeyValueResource
  from superset.key_value.utils import decode_permalink_id
  from superset.models.dashboard import Dashboard
  from tests.integration_tests.fixtures.world_bank_dashboard import load_world_bank_dashboard_with_slices, load_world_bank_data
  from tests.integration_tests.test_app import app
label_desc: Use image node_id 2 for calling a global function with example usage: permalink_salt() without return types