'Returns whether or not the item with given location has a published version.'

def _is_location_published(self, location):

    return modulestore().has_item(location, revision=ModuleStoreEnum.RevisionOption.published_only)
