code: def do_cancel_compiled_task(self):
      self._dag_cancelled = True
      for channel in self._input_channels:
          channel.close()
      self._output_channel.close()
  
imports: from collections import defaultdict
  from typing import Any, Dict, List, Tuple, Union, Optional
  import logging
  import threading
  import traceback
  import ray
  from ray.exceptions import RayTaskError
  from ray.experimental.channel import Channel
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 3 for calling a global function with example usage: do_cancel_compiled_task() without return types