from textwrap import dedent


def _module_load(version: str) -> str:
    """Return the load modules for PBS job scheduler."""
    text = dedent(
        """
    # load required modules
    module load fds
    """.rstrip()
    )
    if version not in ["", "latest"]:
        text += f"/{version}"

    return text