code: def extract_intermdeiate_expr(mod, expr_id):
      """Extract Relay Expr by its expression ID
  
      This function is used for extracting Relay Expr
      by its expression ID of the main function
      that we can see in `print(mod["main"])`.
  
      Parameters
      ----------
      mod : tvm.IRModule
  
      expr_id : the Expr ID that we want to extract
  
      Returns
      -------
      ret : Extracted IRModule
  
      Examples
      --------
      .. code-block:: python
  
          # Suppose our module is printed like this:
          # def @main(%x: Tensor[(1, 1, 5, 1), float32], %w1, %w2) {
          #   %0 = nn.conv2d(%x, %w1, padding=[1, 1, 1, 1], channels=1, kernel_size=[3, 3]);
          #   %1 = nn.conv2d(%0, %w2, padding=[1, 1, 1, 1], channels=1, kernel_size=[3, 3]);
          #   %2 = add(%0, %1);
          #   %3 = split(%2, indices_or_sections=1);
          #   %4 = %3.0;
          #   add(%4, 1f)
          # }
          # if we want to extract `%1 = nn.conv2d`
          from tvm import relay
  
          relay.analysis.extract_intermdeiate_expr(mod, 1)
      """
      return _ffi_api.ExtractIntermediateExpr(mod, expr_id)
  
imports: from ...ir import IRModule
  from ...relay import transform, build_module
  from ...runtime.ndarray import cpu
  from .None import _ffi_api
  from .feature import Feature
label_desc: Use image node_id 21 for calling a global function with example usage: extract_intermdeiate_expr(mod, expr_id) and returns: _ffi_api