class_docstr: A mechanism for cancelling blocking computation.
code: def get_cancelable_function(self, concrete_function):
      def cancellable(*args, **kwargs):
          with CancellationManagerContext(self):
              return concrete_function(*args, **kwargs)
  
      return cancellable
  
file_path: tensorflow/tensorflow/python/eager/cancellation.py
imports: from tensorflow.python import pywrap_tfe
label_desc: Use image node_id 4 for calling the CancellationManager obj's underlying member method code with example usage: obj.get_cancelable_function(concrete_function) and returns: cancellable, concrete_function