code: def __init__(
      self,
      input_size,
      hidden_size,
      num_layers,
      num_classes,
      every_frame=True,
  ):
      super(GRU, self).__init__()
      self.hidden_size = hidden_size
      self.num_layers = num_layers
      self.every_frame = every_frame
      self.gru = nn.GRU(
          input_size,
          hidden_size,
          num_layers,
          batch_first=True,
          bidirectional=True,
      )
      self.fc = nn.Linear(hidden_size * 2, num_classes)
  
imports: import math
  import numpy
  import torch
  import torch.nn
  from torch.autograd import Variable
label_desc: Use image node_id 1 to create a new GRU object from inherited base classes: nn with example: obj = GRU(input_size, hidden_size, num_layers, num_classes, every_frame)