def task(task, **kwargs):
    """Handles the "task" fragment
    
    Creates the keyword arg "multiline" as a boolean for whether the model answer has multiple lines and "pre_lines" as
    a list of lines for the visible_pre_code.
    """
    kwargs["task"] = task
    kwargs["multiline"] = "\n" in task.model_answer
    kwargs["pre_lines"] = task.visible_pre_code.split("\n")
    
    return kwargs