def substitute_args(args, student_path, seed):
    """
    Updates the given arguments by replacing $template values with the given ones.

    Args:
        arg (List[str]):
        student_path (str):
        seed (Any):

    Returns:

    """
    for arg in args.split(','):
        if arg == '$_STUDENT_MAIN':
            yield student_path
        elif arg == '$_STUDENT_NAME':
            yield seed
        yield arg
