def METHOD_NAME(mods: str | None) -> str | None:
    if mods is None:
        return
    # options lines might need a ruff noqa comment for line length, etc
    mods = mods.split("#")[0].strip()
    mods = (mod.strip() for mod in mods.split(","))
    return ", ".join(f":ref:`bokeh.sampledata.{mod} <sampledata_{mod}>`" for mod in mods)