code: def from_list(cls, vals: List[Value] = [], reverse: bool = False) -> "LinkedList":
          
          res = EmptyList()
          for v in (vals if reverse else vals[::-1]):
              res = cls(v, res)
          return res
docs: Create an instance from a standard list.
  
          Args:
              vals: Python list of instance values.