code: def test_bad_dimensions(self):
      item = Item(embedding=[1, 2])
      session = Session(engine)
      session.add(item)
      with pytest.raises(
          StatementError, match="expected 3 dimensions, not 2"
      ):
          session.commit()
  
file_path: pgvector-python/tests/test_sqlmodel.py
imports: import numpy
  from pgvector.sqlalchemy import Vector
  import pytest
  from sqlalchemy import Column
  from sqlalchemy.exc import StatementError
  from sqlmodel import Field, Session, SQLModel, create_engine, delete, select, text
  from typing import List, Optional
label_desc: Use image node_id 6 for calling the TestSqlmodel obj's underlying member method code with example usage: obj.test_bad_dimensions() without return types