class_docstr: Implementation for https://arxiv.org/abs/2006.04558
class_docstr_tok: ["Implementation","for","https",":","\/\/arxiv.org\/abs\/2006.04558"]
code: def hub_models(cls):
      base_url = "http://dl.fbaipublicfiles.com/fairseq/s2"
      model_ids = [
          "fastspeech2-en-ljspeech",
          "fastspeech2-en-200_speaker-cv4",
      ]
      return {i: f"{base_url}/{i}.tar.gz" for i in model_ids}
  
imports: import logging
  import torch
  from torch import nn
  from fairseq import utils
  from fairseq.data.data_utils import lengths_to_padding_mask
  from fairseq.models import FairseqEncoder, FairseqEncoderModel, register_model, register_model_architecture
  from fairseq.models.text_to_speech.hub_interface import TTSHubInterface
  from fairseq.models.text_to_speech.tacotron2 import Postnet
  from fairseq.modules import FairseqDropout, LayerNorm, MultiheadAttention, PositionalEmbedding
label_desc: Use image node_id 1 for calling the FastSpeech2Model obj's underlying member method code with example usage: obj.hub_models(cls) and returns: unknown