code: def new_version(self, session):
      # expire parent's reference to us
      session.expire(self.parent, ["child"])
  
      # create new version
      Versioned.new_version(self, session)
  
      # re-add ourselves to the parent
      self.parent.child = self
  
imports: from sqlalchemy import Column
  from sqlalchemy import create_engine
  from sqlalchemy import event
  from sqlalchemy import ForeignKey
  from sqlalchemy import Integer
  from sqlalchemy import String
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import attributes
  from sqlalchemy.orm import backref
  from sqlalchemy.orm import make_transient
  from sqlalchemy.orm import relationship
  from sqlalchemy.orm import Session
  from sqlalchemy.orm import sessionmaker
label_desc: Use image node_id 1 for calling the Child obj's underlying member method code with example usage: obj.new_version(session) without return types