code: def tag_scope(tag):
      """The operator tag scope.
  
      Parameters
      ----------
      tag: str
          The tag name.
  
      Returns
      -------
      tag_scope: TagScope
          The tag scope object, which can be used as decorator or
          context manger.
  
      Example
      -------
      .. code-block:: python
  
          n = te.var('n')
          m = te.var('m')
          l = te.var('l')
          A = te.placeholder((n, l), name='A')
          B = te.placeholder((m, l), name='B')
          k = te.reduce_axis((0, l), name='k')
  
          with tvm.te.tag_scope(tag='matmul'):
              C = te.compute((n, m), lambda i, j: te.sum(A[i, k] * B[j, k], axis=k))
  
          # or use tag_scope as decorator
          @tvm.te.tag_scope(tag="conv")
          def compute_relu(data):
              return te.compute(data.shape, lambda *i: tvm.tir.Select(data(*i) < 0, 0.0, data(*i)))
      """
      return TagScope(tag)
  
file_path: tvm/python/tvm/te/tag.py
imports: import warnings
  from tvm._ffi.base import decorate
label_desc: Use image node_id 1 for calling a global function with example usage: tag_scope(tag) and returns: TagScope