'Create a library with a unique name and key.
All class attributes (from this class and base classes) are automagically
passed in via **kwargs.'

@classmethod
def _create(cls, target_class, **kwargs):

    org = kwargs.pop('org')
    library = kwargs.pop('library')
    store = kwargs.pop('modulestore')
    user_id = kwargs.pop('user_id', ModuleStoreEnum.UserID.test)
    kwargs.update(kwargs.pop('metadata', {}))
    default_store_override = kwargs.pop('default_store', ModuleStoreEnum.Type.split)
    with store.default_store(default_store_override):
        new_library = store.create_library(org, library, user_id, fields=kwargs)
        return new_library
