code: def import_should_record_backprop():  # pragma: no cover
      """Return should_record_backprop or an equivalent function from TensorFlow."""
      import tensorflow.python as tfpy
  
      if hasattr(tfpy.eager.tape, "should_record_backprop"):
          from tensorflow.python.eager.tape import (
              should_record_backprop,
          )
      elif hasattr(tfpy.eager.tape, "should_record"):
          from tensorflow.python.eager.tape import (
              should_record as should_record_backprop,
          )
      elif hasattr(tfpy.eager.record, "should_record_backprop"):
          from tensorflow.python.eager.record import (
              should_record_backprop,
          )
      else:
          raise ImportError(
              "Cannot import should_record_backprop from TensorFlow."
          )
  
      return should_record_backprop
  
file_path: pennylane/pennylane/math/utils.py
imports: import warnings
  import autoray
  import numpy
  from autograd.numpy.numpy_boxes import ArrayBox
  from autoray import numpy
  from .None import single_dispatch
label_desc: Use image node_id 10 for calling a global function with example usage: import_should_record_backprop() and returns: should_record_backprop