'Get a library from this modulestore or return None if it does not exist.'

def get_library(self, library_id, depth=0, **kwargs):

    assert isinstance(library_id, LibraryLocator)
    for library in self.get_courses(**kwargs):
        if (library.location.library_key == library_id):
            return library
    return None
