code: def forward(self, x: Tensor) -> Tensor:
      result = self.block(x)
      if self.use_res_connect:
          result += x
  
      return result
  
imports: from typing import Callable, List, Optional
  import torch
  from torch import nn, Tensor
  from torch.nn import functional
  from functools import partial
label_desc: Use image node_id 2 for calling the InvertedResidual obj's underlying member method code with example usage: obj.forward(x) and returns: result