code: def warn_once(message: str, *, exception: type(Exception) = None):
      if len(warned_once) < MAX_WARNED_ONCE_CAPACITY:
          if exception is None:
              exception = NeptuneDeprecationWarning
  
          message_hash = hash(message)
  
          if message_hash not in warned_once:
              warnings.warn(
                  message=message,
                  category=exception,
                  stacklevel=get_user_code_stack_level(),
              )
              warned_once.add(message_hash)
  
file_path: neptune-client/src/neptune/common/warnings.py
imports: import os
  import traceback
  import warnings
  import neptune
label_desc: Use image node_id 2 for calling a global function with example usage: warn_once(message) without return types