original_docstring: Validate puzzle grid size input parameter.
  
      Args:
          grid_size: (str) the size of a grid.
  
      Raises:
          ValueError: in case invalid input parameter.
      
docstring: Validate puzzle grid size input parameter.
docstring_tokens: Validate puzzle grid size input parameter .
code: def _validate_puzzle_grid_size(grid_size: str) -> None:
      """Validate puzzle grid size input parameter.
  
      Args:
          grid_size: (str) the size of a grid.
  
      Raises:
          ValueError: in case invalid input parameter.
      """
      if not re.findall(string=grid_size, pattern=r'-?\d+x-?\d+'):
          raise ValueError(
              f'Specified "{grid_size}" grid size value is invalid. '
              'It should match "NxN" pattern e e.g "10x10"!.'
          )
code_tokens: def _validate_puzzle_grid_size ( grid_size : str ) -> None : if not re . findall ( string = grid_size , pattern = r'-?\d+x-?\d+' ) : raise ValueError ( f'Specified "{grid_size}" grid size value is invalid. ' 'It should match "NxN" pattern e e.g "10x10"!.' )
short_docstring: Validate puzzle grid size input parameter.
short_docstring_tokens: Validate puzzle grid size input parameter .
comment: """Validate puzzle grid size input parameter.
  
      Args:
          grid_size: (str) the size of a grid.
  
      Raises:
          ValueError: in case invalid input parameter.
      """