code: def IsContainingContext(ctxt, maybe_containing_ctxt):
      """Returns true if `maybe_containing_ctxt` is or contains `ctxt`."""
      while ctxt is not maybe_containing_ctxt:
          if ctxt is None:
              return False
          ctxt = ctxt.outer_context
      return True
  
imports: import os
  import traceback
  from tensorflow.python import tf2
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 22 for calling a global function with example usage: IsContainingContext(ctxt, maybe_containing_ctxt) and returns: True, False