human
I wrote the below code

    def include_comparative_elements(gallery_parent_elem, gallery):
        XML.SubElement(gallery_parent_elem, 'baseRootFolder').text = str(gallery.get('base-root-folder', ''))
        image_inner_width = gallery.get('image-inner-width', '')
        if image_inner_width:
            XML.SubElement(gallery_parent_elem, 'imageInnerWidth').text = str(image_inner_width)
    package_prefix = 'org.jenkinsci.plugins.imagegallery.'
    builder = XML.SubElement(xml_parent, (package_prefix + 'ImageGalleryRecorder'))
    image_galleries = XML.SubElement(builder, 'imageGalleries')
    galleries = {'archived-images-gallery': (package_prefix + 'imagegallery.ArchivedImagesGallery'), 'in-folder-comparative-gallery': (package_prefix + 'comparative.InFolderComparativeArchivedImagesGallery'), 'multiple-folder-comparative-gallery': (package_prefix + 'comparative.MultipleFolderComparativeArchivedImagesGallery')}
    for gallery_def in data:
        gallery_type = gallery_def.get('gallery-type', 'archived-images-gallery')
        if (gallery_type not in galleries):
            raise InvalidAttributeError('gallery-type', gallery_type, galleries.keys())
        gallery_config = XML.SubElement(image_galleries, galleries[gallery_type])
        XML.SubElement(gallery_config, 'title').text = str(gallery_def.get('title', ''))
        image_width = str(gallery_def.get('image-width', ''))
        if image_width:
            XML.SubElement(gallery_config, 'imageWidth').text = str(image_width)
        XML.SubElement(gallery_config, 'markBuildAsUnstableIfNoArchivesFound').text = str(gallery_def.get('unstable-if-no-artifacts', False))
        if (gallery_type == 'archived-images-gallery'):
            XML.SubElement(gallery_config, 'includes').text = str(gallery_def.get('includes', ''))
        if (gallery_type == 'in-folder-comparative-gallery'):
            include_comparative_elements(gallery_config, gallery_def)
        if (gallery_type == 'multiple-folder-comparative-gallery'):
            include_comparative_elements(gallery_config,...

What's a good function header?

=====
Write me a Python code to fix = 'org?
assistant
#Here is Python code to fix = 'org.

def image_gallery(registry, xml_parent, data):