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 include the Flask setup, the route to handle the input, and the HTML templates used to display the input.
  assert home('/')=={returns the rendered 'index.html' page}
  assert home('/', method='POST', data={'input_text': 'Test Input'})=={returns the rendered 'result.html' page with 'Test Input' displayed}
output: def home(path):
      from flask import Flask, request, render_template
      app = Flask(__name__)
  
      @app.route(path, methods=['GET', 'POST'])
      def home():
          if request.method == 'POST':
              input_text = request.form['input_text']
              return render_template('result.html', input_text=input_text)
          return render_template('index.html')