code: def should_record_backprop(tensors):
      """Returns true if any tape in the stack watches any of these tensors.
  
      Only takes GradientTapes into account, not forward accumulators.
  
      Args:
        tensors: Tensors to check, typically inputs to an operation.
  
      Returns:
        Boolean, whether any tape watches any of `tensors`.
      """
      return pywrap_tfe.TFE_Py_TapeSetShouldRecordBackprop(tensors)
  
file_path: tensorflow-upstream/tensorflow/python/eager/record.py
imports: import contextlib
  from tensorflow.python import pywrap_tfe
label_desc: Use image node_id 2 for calling a global function with example usage: should_record_backprop(tensors) and returns: pywrap_tfe