src/transformers/models/bert/modeling_bert.py/BertEncoder/__init__
class BertEncoder:    def __init__(self, config):
        super().__init__()
        self.config = config
        self.layer = nn.ModuleList([BertLayer(config) for _ in range(config.num_hidden_layers)])