code: def new_version(self, session):
      # make us transient (removes persistent
      # identity).
      make_transient(self)
  
      # set 'id' to None.
      # a new PK will be generated on INSERT.
      self.id = None
  
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 Versioned obj's underlying member method code with example usage: obj.new_version(session) without return types