'Returns the collection storing the asset metadata.'

def asset_collection(self):

    all_stores = self.mixed_modulestore.modulestores
    if (len(all_stores) > 1):
        return None
    store = all_stores[0]
    if hasattr(store, 'asset_collection'):
        return store.asset_collection
    else:
        return store.db_connection.structures
