code: def set_attrs(self, minimal_app_for_api):
      self.app = minimal_app_for_api
  
      sm = self.app.appbuilder.sm
      tester = sm.find_user(username="test")
      if not tester:
          role_admin = sm.find_role("Admin")
          sm.add_user(
              username="test",
              first_name="test",
              last_name="test",
              email="test@fab.org",
              role=role_admin,
              password="test",
          )
  
imports: from __future__ import annotations
  from base64 import b64encode
  import pytest
  from flask_login import current_user
  from tests.test_utils.api_connexion_utils import assert_401
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_pools
  from tests.test_utils.www import client_with_login
label_desc: Use image node_id 1 for calling the BaseTestAuth obj's underlying member method code with example usage: obj.set_attrs(minimal_app_for_api) without return types