code: def _get_tasks(model):
      tvmc_model = tvmc.frontends.load_model(model)
      tasks, weights = tvmc.autotuner.autoscheduler_get_tuning_tasks(
          tvmc_model.mod, tvmc_model.params, "llvm"
      )
      return (tasks, weights)
  
file_path: tvm/tests/python/driver/tvmc/test_autoscheduler.py
imports: import platform
  import pytest
  import os
  from os import path
  from tvm import auto_scheduler
  from tvm.driver import tvmc
label_desc: Use image node_id 1 for calling a global function with example usage: _get_tasks(model) and returns: tasks,  weights