code: def dashboard_id(load_world_bank_dashboard_with_slices) -> int:
      with app.app_context() as ctx:
          session: Session = ctx.app.appbuilder.get_session
          dashboard = (
              session.query(Dashboard)
              .filter_by(slug="world_health")
              .one()
          )
          return dashboard.id
  
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 1 for calling a global function with example usage: dashboard_id(load_world_bank_dashboard_with_slices) and returns: dashboard