input: def create_update_delete_records(app: Flask, db: SQLAlchemy) -> None:
      """ Write a Python function using Flask and SQLAlchemy that allows users to create, read, update, and delete records from a database.
      The function should define an 'Record' model with 'id' and 'name' attributes. It should also include routes to handle GET requests for all records, 
      POST requests to create a new record, PUT requests to update an existing record, and DELETE requests to remove a record.
      >>> create_update_delete_records(app, db)
      """
output:     
      class Record(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          name = db.Column(db.String(80), nullable=False)
  
      @app.route('/records', methods=['GET'])
      def get_records():
          records = Record.query.all()
          return jsonify([{'id': record.id, 'name': record.name} for record in records])
  
      @app.route('/records', methods=['POST'])
      def create_record():
          data = request.get_json()
          new_record = Record(name=data['name'])
          db.session.add(new_record)
          db.session.commit()
          return jsonify({'id': new_record.id, 'name': new_record.name}), 201
  
      @app.route('/records/<int:id>', methods=['PUT'])
      def update_record(id):
          data = request.get_json()
          record = Record.query.get(id)
          if record:
              record.name = data['name']
              db.session.commit()
              return jsonify({'id': record.id, 'name': record.name})
          return jsonify({'error': 'Record not found'}), 404
  
      @app.route('/records/<int:id>', methods=['DELETE'])
      def delete_record(id):
          record = Record.query.get(id)
          if record:
              db.session.delete(record)
              db.session.commit()
              return jsonify({'result': 'Record deleted'})
          return jsonify({'error': 'Record not found'}), 404
  