src/transformers/models/regnet/convert_regnet_to_pytorch.py/NameToFromModelFuncMap/__getitem__
class NameToFromModelFuncMap:    def __getitem__(self, x: str) -> Callable[[], Tuple[nn.Module, Dict]]:
        # default to timm!
        if x not in self:
            x = self.convert_name_to_timm(x)
            val = partial(lambda: (timm.create_model(x, pretrained=True).eval(), None))

        else:
            val = super().__getitem__(x)

        return val