code: def FeedForward(dim, hidden_dim, dropout=0.0):
      return nn.Sequential(
          LayerNorm(dim),
          nn.Linear(dim, hidden_dim),
          nn.GELU(),
          nn.Dropout(dropout),
          nn.Linear(hidden_dim, dim),
          nn.Dropout(dropout),
      )
  
imports: from functools import partial
  from typing import List, Union
  import torch
  import torch.nn.functional
  from torch import nn, Tensor
  from torch.nn.utils.rnn import pad_sequence
  from einops import rearrange, repeat
  from einops.layers.torch import Rearrange
label_desc: Use image node_id 7 for calling a global function with example usage: FeedForward(dim, hidden_dim, dropout) and returns: nn