'Finds and returns the store that contains the course for the given location, and verifying
that the store supports the given method.
Raises NotImplementedError if the found store does not support the given method.'

def _verify_modulestore_support(self, course_key, method):

    store = self._get_modulestore_for_courselike(course_key)
    if hasattr(store, method):
        return store
    else:
        raise NotImplementedError(u'Cannot    call    {}    on    store    {}'.format(method, store))
