class_docstr: Mock resultset class for databases we can't test in CI.
class_docstr_tok: ["Mock","resultset","class","for","databases","we","ca","n't","test","in","CI","."]
code: def __call__(self, *args: Any, **kwargs: Any) -> Any:  # noqa: D102
      if self.repeat_batched_calls:
          res = self.test_data[: None if self.n_calls else 0]
          self.n_calls -= 1
      else:
          res = iter((self.test_data,))
      return res
  
imports: from __future__ import annotations
  import os
  import sqlite3
  import sys
  from contextlib import suppress
  from datetime import date
  from pathlib import Path
  from types import GeneratorType
  from typing import TYPE_CHECKING, Any, NamedTuple
  import pytest
  from sqlalchemy import Integer, MetaData, Table, create_engine, func, select
  from sqlalchemy.sql.expression import cast
  import polars
  from polars.exceptions import UnsuitableSQLError
  from polars.io.database import _ARROW_DRIVER_REGISTRY_
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 2 for calling the MockResultSet obj's underlying member method code with example usage: obj.__call__() and returns: res