def METHOD_NAME(**init_kwargs):
    core.close_db()
    try:
        os.mkdir("test_dbs")
    except OSError:
        pass
    caller_fname = os.path.basename(inspect.getframeinfo(inspect.currentframe().f_back)[0])[:-3]
    testing_db_name = init_kwargs.pop("testing_db_name", caller_fname)
    if testing_db_backend == "sqlite":
        db_name = f"test_dbs/%s.db"%testing_db_name
        try:
            os.remove(db_name)
        except OSError:
            pass
        core.init_db(f"sqlite:///{db_name}", **init_kwargs)
    else:
        db_url = f"{testing_db_backend}://{testing_db_user}:{testing_db_password}@localhost"
        engine = create_engine(db_url)
        with engine.connect() as conn:
            conn.execute(text("COMMIT"))
            conn.execute(text(f"DROP DATABASE IF EXISTS {testing_db_name}"))
            conn.execute(text("COMMIT"))
            conn.execute(text(f"CREATE DATABASE {testing_db_name}"))
        core.init_db(f"{db_url}/{testing_db_name}", **init_kwargs)