code: def update_url(self) -> str:
      return url_for("blog.update", id=self.id)
  
file_path: flask-sqlalchemy/examples/flaskr/flaskr/blog/models.py
imports: from sqlalchemy.orm import Mapped, mapped_column, relationship
  from sqlalchemy import ForeignKey
  from datetime import datetime
  from datetime import timezone
  from flask import url_for
  from flaskr import db
  from flaskr.auth.models import User
label_desc: Use image node_id 1 for calling the Post obj's underlying member method code with example usage: obj.update_url() and returns: url_for