code: def warn_once(logger: "Logger", msg: str):
      logger.warning(msg)
  
imports: import logging
  import os
  import sys
  import threading
  from functools import lru_cache
  from logging import CRITICAL, DEBUG, ERROR, FATAL, INFO, NOTSET, WARN, WARNING
  from typing import TYPE_CHECKING, Optional
label_desc: Use image node_id 22 for calling a global function with example usage: warn_once(logger, msg) without return types