code: def _validate_url_query_or_fragment(part: str) -> None:
      for key, values in parse.parse_qs(part).items():
          _validate_url_part(key)
          for value in values:
              _validate_url_part(value)
  
imports: from __future__ import annotations
  import re
  from urllib import parse
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_url_query_or_fragment(part) without return types