code: def reset_uid(namespace: str = "default") -> None:
      """Reset counter for a specific namespace."""
      _last_uid[namespace] = 0
  
imports: from __future__ import annotations
  import logging
  from collections import defaultdict
  from typing import Any, List, cast
label_desc: Use image node_id 2 for calling a global function with example usage: reset_uid(namespace) without return types