def METHOD_NAME(response):
    """Serialize HTTP response for DOI."""
    json_data = response.json()
    data = {key.replace("-", "_").lower(): value for key, value in json_data.items()}
    try:
        return DOIImporter(**data)
    except TypeError:
        raise errors.DatasetImportError("doi metadata could not be serialized")