class_docstr: Task Scheduling controller.
  Notice time-zone is ALWAYS UTC
class_docstr_tok: ["Task","Scheduling","controller",".","Notice","time-zone","is","ALWAYS","UTC"]
docstr: Remove a Task ID from the scheduled task list.
  
  :param task_id: Task or Task ID to be removed
  :return: return True of the Task ID was found in the scheduled jobs list and was removed.
docstr_tok: ["Remove","a","Task","ID","from","the","scheduled","task","list",".",":","param","task_id",":","Task","or","Task","ID","to","be","removed",":","return",":","return","True","of","the","Task","ID","was","found","in","the","scheduled","jobs","list","and","was","removed","."]
code: def remove_task(self, task_id):
      # type: (Union[str, Task, Callable]) -> bool
      """
      Remove a Task ID from the scheduled task list.
  
      :param task_id: Task or Task ID to be removed
      :return: return True of the Task ID was found in the scheduled jobs list and was removed.
      """
      if isinstance(task_id, (Task, str)):
          task_id = (
              task_id.id if isinstance(task_id, Task) else str(task_id)
          )
          if not any(
              t.base_task_id == task_id for t in self._schedule_jobs
          ):
              return False
          self._schedule_jobs = [
              t
              for t in self._schedule_jobs
              if t.base_task_id != task_id
          ]
      else:
          if not any(
              t.base_function == task_id for t in self._schedule_jobs
          ):
              return False
          self._schedule_jobs = [
              t
              for t in self._schedule_jobs
              if t.base_function != task_id
          ]
      return True
  
imports: import json
  import logging
  from datetime import datetime
  from threading import Thread, enumerate
  from time import sleep, time
  from typing import List, Union, Optional, Callable, Sequence, Dict
  from attr import attrs, attrib
  from dateutil.relativedelta import relativedelta
  from .job import ClearmlJob
  from .controller import PipelineController
  from ..backend_interface.util import datetime_from_isoformat, datetime_to_isoformat, mutually_exclusive
  from ..task import Task
label_desc: Use image node_id 4 for calling the TaskScheduler obj's underlying member method code with example usage: obj.remove_task(task_id) and returns: True, False, False