def METHOD_NAME(docm: DocMetadata) -> str:
    """Returns BibTeX citation for the paper."""
    published = docm.get_datetime_of_version(None)
    year = str(published.year) if published else "unknown"
    title = _normalize_whitespace(docm.title)
    pauths = parse_author_affil_utf(docm.authors.raw)
    auths = _fmt_author_list(pauths)
    pc = docm.primary_category if docm.primary_category else "unknown"
    return (
        "@misc{" + txt_id(docm, pauths, year) + ",\n"
        "      title={" + title + "}, \n"
        "      author={" + auths + "},\n"
        "      year={" + year + "},\n"
        "      eprint={" + docm.arxiv_id + "},\n"
        "      archivePrefix={arXiv},\n"
        "      primaryClass={" + str(pc) + "}\n"
        "}"
    )