class_docstr: mindsdb instance with temporal database and config
code: def clear_db(self, db):
      # drop
      db.session.rollback()
      db.Base.metadata.drop_all(db.engine)
  
      # create
      db.Base.metadata.create_all(db.engine)
  
      # fill with data
      r = db.Integration(name="files", data={}, engine="files")
      db.session.add(r)
      r = db.Integration(name="views", data={}, engine="views")
      db.session.add(r)
      r = db.Integration(name="autokeras", data={}, engine="autokeras")
      db.session.add(r)
      r = db.Integration(name="autogluon", data={}, engine="autogluon")
      db.session.add(r)
      r = db.Integration(
          name="huggingface", data={}, engine="huggingface"
      )
      db.session.add(r)
      r = db.Integration(name="merlion", data={}, engine="merlion")
      db.session.add(r)
      r = db.Integration(
          name="monkeylearn", data={}, engine="monkeylearn"
      )
      db.session.add(r)
      r = db.Integration(
          name="statsforecast", data={}, engine="statsforecast"
      )
      db.session.add(r)
      r = db.Integration(name="dummy_ml", data={}, engine="dummy_ml")
      db.session.add(r)
      r = db.Integration(
          name="neuralforecast", data={}, engine="neuralforecast"
      )
      db.session.add(r)
      r = db.Integration(
          name="popularity_recommender",
          data={},
          engine="popularity_recommender",
      )
      db.session.add(r)
      r = db.Integration(name="lightfm", data={}, engine="lightfm")
      db.session.add(r)
      r = db.Integration(name="openai", data={}, engine="openai")
      db.session.add(r)
      r = db.Integration(
          name="anomaly_detection", data={}, engine="anomaly_detection"
      )
      db.session.add(r)
      r = db.Integration(
          name="anyscale_endpoints",
          data={},
          engine="anyscale_endpoints",
      )
      db.session.add(r)
      r = db.Integration(
          name="langchain_embedding",
          data={},
          engine="langchain_embedding",
      )
      db.session.add(r)
      r = db.Integration(name="writer", data={}, engine="writer")
      db.session.add(r)
      r = db.Integration(name="rag", data={}, engine="rag")
      db.session.add(r)
      r = db.Integration(name="dummy_llm", data={}, engine="dummy_llm")
      db.session.add(r)
      r = db.Integration(name="litellm", data={}, engine="litellm")
      db.session.add(r)
      r = db.Integration(
          name="sentence_transformers",
          data={},
          engine="sentence_transformers",
      )
      db.session.add(r)
  
      r = db.Integration(name="pycaret", data={}, engine="pycaret")
      db.session.add(r)
  
      r = db.Integration(name="vertex", data={}, engine="vertex")
      db.session.add(r)
  
      r = db.Integration(
          name="google_gemini", data={}, engine="google_gemini"
      )
      db.session.add(r)
  
      r = db.Integration(
          name="leonardo_ai", data={}, engine="leonardo_ai"
      )
      db.session.add(r)
  
      # Lightwood should always be last (else tests break, why?)
      r = db.Integration(name="lightwood", data={}, engine="lightwood")
      db.session.add(r)
  
      db.session.flush()
  
      self.lw_integration_id = r.id
  
      # default project
      r = db.Project(name="mindsdb")
      db.session.add(r)
  
      db.session.commit()
      return db
  
imports: import copy
  import datetime
  import json
  import os
  import sys
  import tempfile
  from unittest import mock
  from pathlib import Path
  import duckdb
  import numpy
  import pandas
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 4 for calling the BaseUnitTest obj's underlying member method code with example usage: obj.clear_db(db) and returns: db