def METHOD_NAME(licenses: List[License]) -> str:
    """
    Example output:
        .. list-table::
           :header-rows: 1
           * - Package
             - License
           * - gopkg.in/tomb.v1
             - :ref:`BSD 3-clause <tomb>`
    """
    lines = [
        ".. list-table::",
        "   :header-rows: 1",
        "",
        "   * - Package",
        "     - License",
    ]
    for license in licenses:
        lines.append(f"   * - {license.name}")
        lines.append(f"     - {license.sphinx_ref()}")
    return "\n".join(lines)