code: def test_should_allow_duplicate_row_if_unique_constraint_is_not_passed(
      clear_sqlmodel,
  ):
      class Hero(SQLModel, table=True):
          id: Optional[int] = Field(default=None, primary_key=True)
          name: str
          secret_name: str
          age: Optional[int] = None
  
      hero_1 = Hero(name="Deadpond", secret_name="Dive Wilson")
      hero_2 = Hero(name="Deadpond", secret_name="Dive Wilson")
  
      engine = create_engine("sqlite://")
  
      SQLModel.metadata.create_all(engine)
  
      with Session(engine) as session:
          session.add(hero_1)
          session.commit()
          session.refresh(hero_1)
  
      with Session(engine) as session:
          session.add(hero_2)
          session.commit()
          session.refresh(hero_2)
  
      with Session(engine) as session:
          heroes = session.exec(select(Hero)).all()
          assert len(heroes) == 2
          assert heroes[0].name == heroes[1].name
  
file_path: sqlmodel/tests/test_main.py
imports: from typing import List, Optional
  import pytest
  from sqlalchemy.exc import IntegrityError
  from sqlalchemy.orm import RelationshipProperty
  from sqlmodel import Field, Relationship, Session, SQLModel, create_engine, select
label_desc: Use image node_id 1 for calling a global function with example usage: test_should_allow_duplicate_row_if_unique_constraint_is_not_passed(clear_sqlmodel) without return types