def METHOD_NAME(self, prefix):
    prefix_data = libmambapy.PrefixData(prefix)
    vp = libmambapy.get_virtual_packages()
    prefix_data.add_packages(vp)
    repo = libmambapy.Repo(self.pool, prefix_data)
    repo.set_installed()