class_docstr: Auxiliary builder to build IR for testing and dev.
  
  Examples
  --------
  .. code-block:: python
  
      ib = tvm.tir.ir_builder.create()
      n = te.var("n")
      A = ib.allocate("float32", n, name="A")
      with ib.for_range(0, n, name="i") as i:
          with ib.if_scope((i % 2) == 0):
              A[i] = A[i] + 1
      # The result stmt.
      stmt = ib.get()
docstr: Create an else scope.
  
  This can only be used right after an if scope.
  
  Returns
  -------
  else_scope : WithScope
     The result else scope.
  
  Examples
  --------
  .. code-block:: python
  
      ib = tvm.tir.ir_builder.create()
      i = te.var("i")
      x = ib.pointer("float32")
      with ib.if_scope((i % 2) == 0):
          x[i] = x[i - 1] + 1
      with ib.else_scope():
          x[i] = x[i - 1] + 2
code: def else_scope(self):
      """Create an else scope.
  
      This can only be used right after an if scope.
  
      Returns
      -------
      else_scope : WithScope
         The result else scope.
  
      Examples
      --------
      .. code-block:: python
  
          ib = tvm.tir.ir_builder.create()
          i = te.var("i")
          x = ib.pointer("float32")
          with ib.if_scope((i % 2) == 0):
              x[i] = x[i - 1] + 1
          with ib.else_scope():
              x[i] = x[i - 1] + 2
      """
      if not self._seq_stack[-1]:
          raise RuntimeError("else_scope can only follow an if_scope")
      prev = self._seq_stack[-1][-1]
      if not isinstance(prev, _stmt.IfThenElse) or prev.else_case:
          raise RuntimeError("else_scope can only follow an if_scope")
      self._seq_stack[-1].pop()
      self._seq_stack.append([])
  
      def _exit_cb():
          self.emit(
              _stmt.IfThenElse(
                  prev.condition, prev.then_case, self._pop_seq()
              )
          )
  
      return WithScope(None, _exit_cb)
  
imports: import tvm
  from tvm._ffi.base import string_types
  from tvm.runtime import ObjectGeneric, convert, const
  from tvm.ir import container
  from .None import stmt
  from .None import expr
  from .None import buffer
  from .None import op
label_desc: Use image node_id 8 for calling the IRBuilder obj's underlying member method code with example usage: obj.else_scope() and returns: WithScope