code: def iter_lines(file_like: Iterable[str]) -> Generator[str, None, None]:
      
      for line in file_like:
          line = line.rstrip('\r\n')
          if line:
              yield line
docs: Helper for iterating only nonempty lines without line breaks