code: def has_multiline_items(maybe_list: Optional[Sequence[str]]):
      
      return maybe_list and any(is_multiline(item) for item in maybe_list)
docs: Check whether one of the items in the list has multiple lines.