input: from typing import List
  
  
  def create_tictactoe_game() -> TicTacToe:
      """Create an instance of the TicTacToe game class.
      >>> game = create_tictactoe_game()
      >>> print(game.display())
      _ _ _
      _ _ _
      _ _ _
      >>> game.board[0][0] = 'x'
      >>> game.board[0][1] = 'x'
      >>> game.board[0][2] = 'x'
      >>> game.check_win()
      True
      """
output:     class TicTacToe:
          def __init__(self):
              self.board = [['_' for _ in range(3)] for _ in range(3)]
          
          def display(self) -> str:
              return '\n'.join(' '.join(row) for row in self.board)
          
          def check_win(self) -> bool:
              for row in self.board:
                  if row[0] == row[1] == row[2] and row[0] != '_':
                      return True
              for col in range(3):
                  if self.board[0][col] == self.board[1][col] == self.board[2][col] and self.board[0][col] != '_':
                      return True
              if self.board[0][0] == self.board[1][1] == self.board[2][2] and self.board[0][0] != '_':
                  return True
              if self.board[0][2] == self.board[1][1] == self.board[2][0] and self.board[0][2] != '_':
                  return True
              return False
      
      return TicTacToe()