class_docstr: MLP as used in Vision Transformer, MLP-Mixer and related networks
      
class_docstr_tok: ["MLP","as","used","in","Vision","Transformer",",","MLP-Mixer","and","related","networks"]
code: def forward(self, x):
      x = self.fc1(x)
      x = self.act(x)
      x = self.drop1(x)
      x = self.fc2(x)
      x = self.drop2(x)
      return x
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  import torch.utils.checkpoint
  import numpy
  from typing import Optional
label_desc: Use image node_id 2 for calling the Mlp obj's underlying member method code with example usage: obj.forward(x) and returns: x