code: def __init__(self):
      super(U2Conformer, self).__init__()
  
      # resource
      res_dir = os.path.join(
          MODULE_HOME, "u2_conformer_aishell", "assets"
      )
      conf_file = os.path.join(res_dir, "conf/conformer.yaml")
      checkpoint = os.path.join(res_dir, "checkpoints/avg_20.pdparams")
  
      # config
      self.config = get_cfg_defaults()
      self.config.merge_from_file(conf_file)
  
      # TODO: Remove path updating snippet.
      with UpdateConfig(self.config):
          self.config.collator.vocab_filepath = os.path.join(
              res_dir, self.config.collator.vocab_filepath
          )
          # self.config.collator.spm_model_prefix = os.path.join(res_dir, self.config.collator.spm_model_prefix)
          self.config.collator.augmentation_config = os.path.join(
              res_dir, self.config.collator.augmentation_config
          )
          self.config.model.cmvn_file = os.path.join(
              res_dir, self.config.model.cmvn_file
          )
          self.config.decoding.decoding_method = "attention_rescoring"
          self.config.decoding.batch_size = 1
  
      # model
      self.tester = U2ConformerTester(self.config)
      self.tester.setup_model()
      self.tester.resume(checkpoint)
  
file_path: PaddleHub/modules/audio/asr/u2_conformer_aishell/module.py
imports: import os
  from pathlib import Path
  import sys
  import numpy
  from paddlehub.env import MODULE_HOME
  from paddlehub.module.module import moduleinfo, serving
  from paddlehub.utils.log import logger
  import paddle
  import soundfile
  from deepspeech.exps.u2.config import get_cfg_defaults
  from deepspeech.utils.utility import UpdateConfig
  from .u2_conformer_tester import U2ConformerTester
label_desc: Use image node_id 1 to create a new U2Conformer object from inherited base classes: paddle.nn with example: obj = U2Conformer()