def datacite_metadata(doi, title, creators, publisher, publication_year, pretty_print=False):
    creators = [CREATOR(CREATOR_NAME(each)) for each in creators]
    root = E.resource(
        E.identifier(doi, identifierType='DOI'),
        E.creators(*creators),
        E.titles(E.title(title)),
        E.publisher(publisher),
        E.publicationYear(str(publication_year)),
    )
    # set xsi:schemaLocation
    root.attrib['{%s}schemaLocation' % XSI] = SCHEMA_LOCATION
    return lxml.etree.tostring(root, pretty_print=pretty_print)


# This function is OSF specific.
Print warning message
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/identifiers/metadata.py/datacite_metadata--crossover with--dataset/ETHPy150Open mikrosimage/ColorPipe-tools/utils/color_log_helper.py/print_warning_message