code: def __init__(
      self, d_model, num_expert, world_size, top_k=2, gate_bias=True
  ):
      super().__init__(
          d_model, num_expert, world_size, top_k, gate_bias
      )
  
file_path: fastmoe/fmoe/gates/swipe_gate.py
imports: import math
  import torch
  import torch.distributed
  import torch.nn
  import torch.nn.functional
  from .naive_gate import NaiveGate
  from fmoe.functions import count_by_gate
  import fmoe_cuda
label_desc: Use image node_id 1 to create a new SwipeGate object from inherited base classes: NaiveGate with example: obj = SwipeGate(d_model, num_expert, world_size, top_k, gate_bias)