code: def warning_advice(self, *args, **kwargs):
      """
      This method is identical to `logger.warning()`, but if env var TRANSFORMERS_NO_ADVISORY_WARNINGS=1 is set, this
      warning will not be printed
      """
      no_advisory_warnings = os.getenv(
          "TRANSFORMERS_NO_ADVISORY_WARNINGS", False
      )
      if no_advisory_warnings:
          return
      self.warning(*args, **kwargs)
  
imports: import logging
  import os
  import sys
  import threading
  from logging import CRITICAL
  from logging import DEBUG
  from logging import ERROR
  from logging import FATAL
  from logging import INFO
  from logging import NOTSET
  from logging import WARN
  from logging import WARNING
  from typing import Optional
  from tqdm import auto
  import huggingface_hub.utils
label_desc: Use image node_id 22 for calling a global function with example usage: warning_advice() without return types