code: def my_add_control_inputs(wait_to_do_ops, inputs_to_do_before):
      for op in wait_to_do_ops:
          ci = [
              i
              for i in inputs_to_do_before
              if op.control_inputs is None or i not in op.control_inputs
          ]
          ge.add_control_inputs(op, ci)
  
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 13 for calling a global function with example usage: my_add_control_inputs(wait_to_do_ops, inputs_to_do_before) without return types