def METHOD_NAME(self):
    # Write the <cp:category> element.
    if 'category' in self.properties:
        data = self.properties['category']
    else:
        return
    self._xml_data_element('cp:category', data)