code: def __init__(self, input_size, hidden_size, num_layers, train):
      super(_AlternatingHighwayLSTMFunction, self).__init__()
      self.input_size = input_size
      self.hidden_size = hidden_size
      self.num_layers = num_layers
      self.train = train
  
file_path: magnitude/pymagnitude/third_party/allennlp/modules/alternating_highway_lstm.py
imports: from __future__ import absolute_import
  import torch
  from torch.autograd import Function
  from torch.nn import Parameter
  from torch.nn.utils.rnn import PackedSequence, pad_packed_sequence, pack_padded_sequence
  from allennlp.nn.initializers import block_orthogonal
  from allennlp.custom_extensions._ext import highway_lstm_layer
label_desc: Use image node_id 1 to create a new _AlternatingHighwayLSTMFunction object from inherited base classes: Function with example: obj = _AlternatingHighwayLSTMFunction(input_size, hidden_size, num_layers, train)