class_docstr: Tuning time profiler.
docstr: Timeit a block of code
docstr_tok: ["Timeit","a","block","of","code"]
code: def timeit(name: str):
      """Timeit a block of code"""
  
      @contextmanager
      def _timeit():
          try:
              f = _ffi_api.ProfilerTimedScope(name)  # type: ignore # pylint: disable=no-member
              yield
          finally:
              if f:
                  f()
  
      return _timeit()
  
file_path: tvm/python/tvm/meta_schedule/profiler.py
imports: from contextlib import contextmanager
  from typing import Dict, Optional
  from tvm._ffi import register_object
  from tvm.runtime import Object
  from .None import _ffi_api
label_desc: Use image node_id 7 for calling the Profiler obj's underlying member method code with example usage: obj.timeit(name) and returns: _timeit