code: def get_tokens(line: str) -> Iterator[str]:
      
      for token in line.rstrip().split():
          if len(token) > 0:
              yield token
docs: Yields tokens from input string.
  
      :param line: Input string.
      :return: Iterator over tokens.