class_docstr: ClassBlock
class_docstr_tok: ["ClassBlock"]
code: def __init__(
      self, dim, num_heads, mlp_ratio, norm_layer=nn.LayerNorm
  ):
      super().__init__()
      self.norm1 = norm_layer(dim)
      self.norm2 = norm_layer(dim)
      self.attn = ClassAttention(dim, num_heads)
      self.mlp = Mlp(dim, hidden_features=int(dim * mlp_ratio))
      self.apply(init_vit_weights)
  
imports: import torch
  from torch import nn
  from timm.models.layers import DropPath
  import numpy
  from towhee.models.wave_vit.wave_vit_utils import DWT2D, IDWT2D
  from towhee.models.utils.init_vit_weights import init_vit_weights
  from towhee.models.layers.mlp import Mlp
label_desc: Use image node_id 1 to create a new ClassBlock object from inherited base classes: nn with example: obj = ClassBlock(dim, num_heads, mlp_ratio, norm_layer)