code: def GetWhileContext(op):
      """Get the WhileContext to which this op belongs."""
      ctxt = (
          op._get_control_flow_context()
      )  # pylint: disable=protected-access
      if ctxt:
          ctxt = ctxt.GetWhileContext()
      return ctxt
  
imports: import os
  import traceback
  from tensorflow.python import tf2
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 26 for calling a global function with example usage: GetWhileContext(op) and returns: ctxt