class_docstr: LSTM encoder.
docstr: Maximum input length supported by the encoder.
docstr_tok: ["Maximum","input","length","supported","by","the","encoder","."]
code: def max_positions(self):
      """Maximum input length supported by the encoder."""
      return self.max_source_positions
  
imports: from typing import Dict, List, Optional, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from fairseq import utils
  from fairseq.models import FairseqEncoder, FairseqEncoderDecoderModel, FairseqIncrementalDecoder, register_model, register_model_architecture
  from fairseq.modules import AdaptiveSoftmax, FairseqDropout
  from torch import Tensor
label_desc: Use image node_id 5 for calling the LSTMEncoder obj's underlying member method code with example usage: obj.max_positions() and returns: self