def METHOD_NAME(self, res_type='CompositeResource', add_keywords=False):
    res = hydroshare.create_resource(res_type, self.user, "Testing updating relation type isPartOf")
    if add_keywords:
        res.metadata.create_element('subject', value='kw-1')
        res.metadata.create_element('subject', value='kw-2')
    return res