class_docstr: Adds adapters to the BertModel module.
class_docstr_tok: ["Adds","adapters","to","the","BertModel","module","."]
code: def iter_layers(self) -> Iterable[Tuple[int, nn.Module]]:
      for i, layer in enumerate(self.encoder.layer):
          yield i, layer
  
file_path: adapters/src/adapters/models/xmod/mixin_xmod.py
imports: from typing import Iterable, Tuple
  import torch.nn
  from transformers.utils import logging
  from ...composition import adjust_tensors_for_parallel_
  from ...model_mixin import EmbeddingAdaptersMixin, InvertibleAdaptersMixin, ModelBaseAdaptersMixin
label_desc: Use image node_id 3 for calling the XmodModelAdaptersMixin obj's underlying member method code with example usage: obj.iter_layers() without return types