code: def validate_string_dict(dct: t.Dict[str, str]) -> None:
      """Validate that the input is a dict with string keys and values.
  
      Raises ValueError if not."""
      for k, v in dct.items():
          if not isinstance(k, str):
              raise ValueError("key %r in dict must be a string" % k)
          if not isinstance(v, str):
              raise ValueError("value %r in dict must be a string" % v)
  
imports: import asyncio
  import inspect
  import sys
  import time
  import typing
  from functools import partial
  from getpass import getpass
  from queue import Empty
  import zmq.asyncio
  from jupyter_core.utils import ensure_async
  from traitlets import Any, Bool, Instance, Type
  from .channels import major_protocol_version
  from .channelsabc import ChannelABC, HBChannelABC
  from .clientabc import KernelClientABC
  from .connect import ConnectionFileMixin
  from .session import Session
label_desc: Use image node_id 1 for calling a global function with example usage: validate_string_dict(dct) without return types