input: 
  from typing import List
  
  def create_and_read_users_rest_api() -> str:
      """
      Implement a REST API in Python for creating and reading users. The API should have endpoints for creating a user, reading all users, and reading a single user.
      >>> create_and_read_users_rest_api()
      "from flask import Flask, jsonify, request\nfrom flask_mysqldb import MySQL\n\napp = Flask(name)\n\n# Mysql configuration\napp.config['MYSQL_USER'] = 'root'\napp.config['MYSQL_PASSWORD'] = 'password'\napp.config['MYSQL_DB'] = 'users'\napp.config['MYSQL_CURSORCLASS'] = 'DictCursor'\n\nmysql = MySQL(app)\n\n@app.route('/users', methods=['POST'])\ndef create_user():\n name = request.json['name']\n email = request.json['email']\n\n cur = mysql.connection.cursor()\n cur.execute("INSERT INTO users (name, email) VALUES (%s, %s)", (name, email))\n mysql.connection.commit()\n cur.close()\n\n return jsonify({'message': 'User created'})\n\n@app.route('/users', methods=['GET'])\ndef get_users():\n cur = mysql.connection.cursor()\n cur.execute("SELECT * FROM users")\n users = cur.fetchall()\n cur.close()\n\n return jsonify(users)\n\n@app.route('/users/<int:id>', methods=['GET'])\ndef get_user(id):\n cur = mysql.connection.cursor()\n cur.execute("SELECT * FROM users WHERE id=%s", (id))\n user = cur.fetchone()\n cur.close()\n\n return jsonify(user)\n\nif name == "\main\":\n app.run(debug=True)"
      """
  
output:     return """from flask import Flask, jsonify, request
  from flask_mysqldb import MySQL
  
  app = Flask(__name__)
  
  # Mysql configuration
  app.config['MYSQL_USER'] = 'root'
  app.config['MYSQL_PASSWORD'] = 'password'
  app.config['MYSQL_DB'] = 'users'
  app.config['MYSQL_CURSORCLASS'] = 'DictCursor'
  
  mysql = MySQL(app)
  
  @app.route('/users', methods=['POST'])
  def create_user():
      name = request.json['name']
      email = request.json['email']
  
      cur = mysql.connection.cursor()
      cur.execute("INSERT INTO users (name, email) VALUES (%s, %s)", (name, email))
      mysql.connection.commit()
      cur.close()
  
      return jsonify({'message': 'User created'})
  
  @app.route('/users', methods=['GET'])
  def get_users():
      cur = mysql.connection.cursor()
      cur.execute("SELECT * FROM users")
      users = cur.fetchall()
      cur.close()
  
      return jsonify(users)
  
  @app.route('/users/<int:id>', methods=['GET'])
  def get_user(id):
      cur = mysql.connection.cursor()
      cur.execute("SELECT * FROM users WHERE id=%s", (id,))
      user = cur.fetchone()
      cur.close()
  
      return jsonify(user)
  
  if __name__ == "__main__":
      app.run(debug=True)"""