<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_list(cls, vals: List[Value] = [], reverse: bool = False) -> "LinkedList": """Create an instance from a standard list. Args: vals: Python list of instance values. """

        res = EmptyList()
        for v in (vals if reverse else vals[::-1]):
            res = cls(v, res)
        return res