input: Write a function named create_tic_tac_toe that returns an instance of a TicTacToe game. The function should include the functionality to display the game board and check if a player has won.
  assert isinstance(create_tic_tac_toe(), TicTacToe)
  game = create_tic_tac_toe()
  game.display()
  assert game.check_win() == False
output: def create_tic_tac_toe():
      class TicTacToe:
          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
      
      return TicTacToe()