code: def test_no_binds_error(app: Flask, model_class: t.Any) -> None:
      del app.config["SQLALCHEMY_DATABASE_URI"]
  
      with pytest.raises(RuntimeError) as info:
          SQLAlchemy(app, model_class=model_class)
  
      e = "Either 'SQLALCHEMY_DATABASE_URI' or 'SQLALCHEMY_BINDS' must be set."
      assert str(info.value) == e
  
imports: from __future__ import annotations
  import os.path
  import typing
  import unittest.mock
  import pytest
  import sqlalchemy
  import sqlalchemy.pool
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
label_desc: Use image node_id 7 for calling a global function with example usage: test_no_binds_error(app, model_class) without return types