def METHOD_NAME(session_template: BosSessionTemplate, bos_version: int) -> None:
    """
    Wrapper for calling the CLI to create the specified BOS session template using the
    specified BOS version.
    Returns nothing.
    Raises BosCliError on error.
    """
    template_name = session_template["name"]
    template_to_create = session_template.copy()
    # Delete the name field (since it is specified on the command line of the create command)
    del template_to_create["name"]
    # Write template to a temporary file and create the record
    with tempfile.NamedTemporaryFile(mode="wt", suffix=".json", prefix="session_template") as tmp:
        json.dump(template_to_create, tmp)
        # Make sure the data has been written to the file so the CLI command can read it.
        tmp.flush()
        if bos_version == 1:
            create_command = ["cray", "bos", f"v{bos_version}", "sessiontemplate", "create",
                              "--file", tmp.name, "--name", template_name, "--format", "json"]
        else:
            create_command = ["cray", "bos", f"v{bos_version}", "sessiontemplates", "create",
                              "--file", tmp.name, template_name, "--format", "json"]
        try:
            subprocess.run(create_command, stdout=subprocess.PIPE, check=True)
        except subprocess.CalledProcessError as exc:
            raise BosCliError(f"Failed to create template '{template_name}': {exc}") from exc