code: def extract_key_query_params(
      query_params: Dict[str, List[str]], param_key: str
  ) -> Set[str]:
      """Extracts key (case-insensitive) query params from Dict, and returns them as Set of str."""
      return set(
          [
              item.lower()
              for sublist in [
                  [value.lower() for value in query_params[key]]
                  for key in query_params.keys()
                  if key.lower() == param_key and query_params.get(key)
              ]
              for item in sublist
          ]
      )
  
imports: from __future__ import annotations
  import dataclasses
  import functools
  import hashlib
  import os
  import subprocess
  import sys
  from typing import Any, Dict, Iterable, List, Mapping, Set, TypeVar, Union
  from typing_extensions import Final
  from streamlit import env_util
label_desc: Use image node_id 10 for calling a global function with example usage: extract_key_query_params(query_params, param_key) and returns: set