def METHOD_NAME(self):
    lfb = {}
    for dataset_mode in self.dataset_modes:
        lfb_path = osp.normpath(
            osp.join(self.lfb_prefix_path, f'lfb_{dataset_mode}.pkl'))
        lfb.update(torch.load(lfb_path, map_location='cpu'))
    lmdb_env = lmdb.open(self.lfb_lmdb_path, map_size=self.lmdb_map_size)
    for key, value in lfb.items():
        txn = lmdb_env.begin(write=True)
        buff = io.BytesIO()
        torch.save(value, buff)
        buff.seek(0)
        txn.put(key.encode(), buff.read())
        txn.commit()
        buff.close()
    print(f'LFB lmdb has been constructed on {self.lfb_lmdb_path}!')