def METHOD_NAME():
    """
    Function to edit and retrieve user profile information
    """
    current_user = get_jwt_identity()
    user = User.query.filter_by(email=current_user).first()
    if request.method == "GET":
        return (
            jsonify(
                {
                    "username": user.email,
                    "bio": user.bio,
                    "first_name": user.first_name,
                    "last_name": user.last_name,
                    "email": user.email,
                    "image": user.image,
                    "id": user.id,
                }
            ),
            200,
        )
    elif request.method == "POST":
        data = request.get_json()
        # print(data['image'])
        user.update_bio(data["bio"])
        user.update_first_name(data["first_name"])
        user.update_last_name(data["last_name"])
        if data["email"] != user.email:
            print("email changed")
            timestamp = datetime.datetime.now()
            timestamp = timestamp.strftime("%d %H:%M:%S")
            md5_digest = hashlib.md5(timestamp.encode()).hexdigest()
            user.update_activation_code(md5_digest)
            confirmation_email(data["email"], md5_digest)
            user.update_email(data["email"])
        db.session.merge(user)
        db.session.commit()
        return jsonify({"msg": "User information changed"}), 200
    else:
        return jsonify({"msg": "profile OK"}), 200