def __getitem__(self, key):
        if key in self.model_keys:
            return self._get_formatted(self.model, key)
        else:
            raise KeyError(key)
dataset/ETHPy150Open beetbox/beets/beets/dbcore/db.py/FormattedMapping.__getitem__/original