input: Write a function to create a web application in Python using Flask that will take user input and generate an HTML page with the input. The function should define the necessary routes and templates to handle the input and display it on the HTML page. If the function is correctly implemented, the following assert statements should pass:
  assert home('/', 'POST', {'input_text': 'Hello World'}) == '<html> <body> <h1>Your Input: </h1> <p>Hello World</p> </body> </html>'
  assert home('/', 'GET') == '<html> <body> </body> </html>'
  
  def home(route, method, form_data=None):
      from flask import Flask, render_template_string, request
      app = Flask(__name__)
      
      @app.route(route, methods=[method])
      def route_handler():
          if request.method == 'POST':
              input_text = request.form.get('input_text')
              return render_template_string('<html> <body> <h1>Your Input: </h1> <p>{{input_text}}</p> </body> </html>', input_text=input_text)
          return render_template_string('<html> <body> </body> </html>')
      
      with app.test_request_context(route, method=method, data=form_data):
          return route_handler()
output: 
  def home(route, method, form_data=None):
      from flask import Flask, render_template_string, request
      app = Flask(__name__)
      
      @app.route(route, methods=[method])
      def route_handler():
          if request.method == 'POST':
              input_text = request.form.get('input_text')
              return render_template_string('<html> <body> <h1>Your Input: </h1> <p>{{input_text}}</p> </body> </html>', input_text=input_text)
          return render_template_string('<html> <body> </body> </html>')
      
      with app.test_request_context(route, method=method, data=form_data):
          return route_handler()
  