class_docstr: The abstract task scheduler interface.
class_docstr_tok: ["The","abstract","task","scheduler","interface","."]
docstr: Fetch the next task id.
  
  Returns
  -------
  next_task_id : int
      The next task id.
docstr_tok: ["Fetch","the","next","task","id",".","Returns","--","--","--","-","next_task_id",":","int","The","next","task","id","."]
code: def next_task_id(self) -> int:
      """Fetch the next task id.
  
      Returns
      -------
      next_task_id : int
          The next task id.
      """
      return _ffi_api.TaskSchedulerNextTaskId(self)
  
imports: from typing import Callable, List, Optional, Union
  from typing_extensions import Literal
  from tvm._ffi import register_object
  from tvm.runtime import Object
  from ..None import _ffi_api
  from ..builder import Builder, BuilderResult
  from ..cost_model import CostModel
  from ..database import Database
  from ..logging import get_logger, get_logging_func
  from ..measure_callback import MeasureCallback
  from ..runner import Runner, RunnerResult
  from ..search_strategy import MeasureCandidate
  from ..tune_context import TuneContext
label_desc: Use image node_id 1 for calling the TaskScheduler obj's underlying member method code with example usage: obj.next_task_id() and returns: _ffi_api