code: def test_auto_test_function_async(test_case, do_raise):
      class MyModel(AsyncModel):
          CONFIGURATIONS = {"my_model": {}}
          TEST_CASES = [test_case]
  
          async def _predict(
              self, item: bool, force_true=False, **_
          ) -> bool:
              if force_true:
                  return True
              return item
  
      if do_raise:
          with pytest.raises(AssertionError):
              MyModel().test()
      else:
          MyModel().test()
  
file_path: modelkit/tests/test_auto_testing.py
imports: from typing import Dict
  import pydantic
  import pytest
  from modelkit.core.model import AsyncModel, Model
  from modelkit.testing import modellibrary_auto_test, modellibrary_fixture
label_desc: Use image node_id 4 for calling a global function with example usage: test_auto_test_function_async(test_case, do_raise) and returns: item, True