code: def test_put(test_client, login_as_admin, dashboard_id: int):
      resp = test_client.put(
          f"api/v1/dashboard/{dashboard_id}/filter_state/{KEY}",
          json={
              "value": UPDATED_VALUE,
          },
      )
      assert resp.status_code == 200
  
imports: import json
  from unittest.mock import patch
  import pytest
  from flask.ctx import AppContext
  from flask_appbuilder.security.sqla.models import User
  from sqlalchemy.orm import Session
  from superset.commands.dashboard.exceptions import DashboardAccessDeniedError
  from superset.commands.temporary_cache.entry import Entry
  from superset.extensions import cache_manager
  from superset.models.dashboard import Dashboard
  from superset.temporary_cache.utils import cache_key
  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 11 for calling a global function with example usage: test_put(test_client, login_as_admin, dashboard_id) without return types