input: Write a function to create a TicTacToe game class in Python. The class should include methods to initialize the game board, display the board, and check if a player has won the game. If a player has won, the check_win method should return True, otherwise it should return False. 
  
  assert TicTacToe().display() == None
  assert TicTacToe().check_win() == False
  assert TicTacToe().__init__() == None
output: 
  def __init__(self):
      self.board = [[' ' for _ in range(3)] for _ in range(3)]
  
  def display(self):
      for row in self.board:
          print('|'.join(row))
          print('-' * 5)
  
  def check_win(self):
      for row in self.board:
          if row[0] == row[1] == row[2] != ' ':
              return True
      for col in range(3):
          if self.board[0][col] == self.board[1][col] == self.board[2][col] != ' ':
              return True
      if self.board[0][0] == self.board[1][1] == self.board[2][2] != ' ':
          return True
      if self.board[0][2] == self.board[1][1] == self.board[2][0] != ' ':
          return True
      return False
  