code: def update_heroes():
      with Session(engine) as session:
          statement = select(Hero).where(Hero.name == "Spider-Boy")
          result = session.exec(statement)
          hero_spider_boy = result.one()
  
          hero_spider_boy.team = None
          session.add(hero_spider_boy)
          session.commit()
  
          session.refresh(hero_spider_boy)
          print("Spider-Boy without team:", hero_spider_boy)
  
file_path: sqlmodel/docs_src/tutorial/relationship_attributes/read_relationships/tutorial002.py
imports: from typing import List, Optional
  from sqlmodel import Field, Relationship, Session, SQLModel, create_engine, select
label_desc: Use image node_id 4 for calling a global function with example usage: update_heroes() without return types