code: def debug_print(s, *args):
      """Like logger.log, but also replaces all TensorFlow ops/tensors with their
      names. Sensitive to value of DEBUG_LOGGING, see enable_debug/disable_debug
  
      Usage:
        debug_print("see tensors %s for %s", tensorlist, [1,2,3])
      """
  
      if DEBUG_LOGGING:
          formatted_args = [format_ops(arg) for arg in args]
          print("DEBUG " + s % tuple(formatted_args))
  
file_path: gpt-2-simple/gpt_2_simple/src/memory_saving_gradients.py
imports: from toposort import toposort
  import contextlib
  import numpy
  import tensorflow
  import time
  import sys
  from tensorflow.python.ops import gradients
label_desc: Use image node_id 11 for calling a global function with example usage: debug_print(s) without return types