def METHOD_NAME(source_dir: str, repo_name: str, destination_dir: str, tag: Optional[str] = None) -> str:
    """
    :param tag: Clone commit with the given tag.
    """
    additional_clone_args = ["-b", tag] if tag is not None else []
    subprocess.check_output(
        ["git", "clone", *additional_clone_args, os.path.join(source_dir, repo_name)],
        cwd=destination_dir,
        stderr=subprocess.STDOUT,
    )
    subprocess.check_output(
        ["git", "config", "user.email", '"test@test.example"'],
        cwd=os.path.join(destination_dir, repo_name),
        stderr=subprocess.STDOUT,
    )
    subprocess.check_output(
        ["git", "config", "user.name", "Tester test"], cwd=os.path.join(destination_dir, repo_name), stderr=subprocess.STDOUT
    )
    return os.path.join(destination_dir, repo_name)