def METHOD_NAME(barerepo):
    odb = pygit2.Odb()
    path = Path(barerepo.path) / 'objects'
    backend = pygit2.OdbBackendPack(path)
    backend = ProxyBackend(backend)
    odb.add_backend(backend, 1)
    METHOD_NAME = pygit2.Repository()
    METHOD_NAME.set_odb(odb)
    yield METHOD_NAME