original_docstring: Validate puzzle words filepath input parameter.
  
      Args:
          path: (Path) a path to words to search.
  
      Raises:
          ValueError: in case invalid input parameter.
      
docstring: Validate puzzle words filepath input parameter.
docstring_tokens: Validate puzzle words filepath input parameter .
code: def _validate_puzzle_words_path(path: Path) -> None:
      """Validate puzzle words filepath input parameter.
  
      Args:
          path: (Path) a path to words to search.
  
      Raises:
          ValueError: in case invalid input parameter.
      """
      if path.suffix not in ('.txt', '.log'):
          raise ValueError(
              f'"{path}" file has invalid suffix ' f'"{path.suffix}"'
          )
code_tokens: def _validate_puzzle_words_path ( path : Path ) -> None : if path . suffix not in ( '.txt' , '.log' ) : raise ValueError ( f'"{path}" file has invalid suffix ' f'"{path.suffix}"' )
short_docstring: Validate puzzle words filepath input parameter.
short_docstring_tokens: Validate puzzle words filepath input parameter .
comment: """Validate puzzle words filepath input parameter.
  
      Args:
          path: (Path) a path to words to search.
  
      Raises:
          ValueError: in case invalid input parameter.
      """