code: def _silence_deprecation_warnings():
      """Context manager that best-effort silences TF deprecation warnings."""
      try:
          # Learn this one weird trick to make TF deprecation warnings go away.
          from tensorflow.python.util import deprecation
  
          return deprecation.silence()
      except (ImportError, AttributeError):
          return _nullcontext()
  
file_path: tensorboard/tensorboard/plugins/graph/graphs_demo.py
imports: import contextlib
  import os
  import tensorflow
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _silence_deprecation_warnings() and returns: deprecation, _nullcontext