class_docstr: Global environment for extracting tuning tasks from graph
class_docstr_tok: ["Global","environment","for","extracting","tuning","tasks","from","graph"]
code: def __init__(self, allow_duplicate=False):
      self.allow_duplicate = allow_duplicate
      self.task_collection = []
      self.wanted_relay_ops = None
      self.modified_funcs = []
      self.tracing = False
  
file_path: tvm/python/tvm/autotvm/task/topi_integration.py
imports: import functools
  import tvm.te._ffi_api
  from tvm.target import Target
  from tvm.te import tensor
  from .task import args_to_workload, serialize_args, DispatchContext, _register_task_compute, _register_task_schedule
label_desc: Use image node_id 1 to create a new TaskExtractEnv object  with example: obj = TaskExtractEnv(allow_duplicate)