class_docstr: Inherit from AlignmentEncoder and add support for adapter
class_docstr_tok: ["Inherit","from","AlignmentEncoder","and","add","support","for","adapter"]
code: def is_adapter_available(self) -> bool:
      return any(
          [
              conv_layer.is_adapter_available()
              for i, conv_layer in enumerate(self.key_proj)
              if i % 2 == 0
          ]
          + [
              conv_layer.is_adapter_available()
              for i, conv_layer in enumerate(self.query_proj)
              if i % 2 == 0
          ]
      )
  
imports: from typing import List, Optional
  from omegaconf import DictConfig
  from nemo.collections.asr.parts.utils import adapter_utils
  from nemo.collections.tts.modules.aligner import AlignmentEncoder
  from nemo.collections.tts.modules.fastpitch import TemporalPredictor
  from nemo.collections.tts.modules.transformer import FFTransformerDecoder, FFTransformerEncoder
  from nemo.core.classes import adapter_mixins
label_desc: Use image node_id 2 for calling the AlignmentEncoderAdapter obj's underlying member method code with example usage: obj.is_adapter_available() and returns: any