class_docstr: mindsdb instance with temporal database and config
code: def setup_class(cls):
      # remove imports of mindsdb in previous tests
      unload_module("mindsdb")
  
      # database temp file
      cls.db_file = tempfile.mkstemp(prefix="mindsdb_db_")[1]
  
      # config
      config = {"storage_db": "sqlite:///" + cls.db_file}
      # config temp file
      fdi, cfg_file = tempfile.mkstemp(prefix="mindsdb_conf_")
  
      with os.fdopen(fdi, "w") as fd:
          json.dump(config, fd)
  
      os.environ["MINDSDB_CONFIG_PATH"] = cfg_file
  
      # initialize config
      from mindsdb.utilities.config import Config
  
      Config()
  
      from mindsdb.interfaces.storage import db
  
      db.init()
      cls.db = db
  
      from multiprocessing import dummy
  
      # We might not have torch installed. So ignore any errors
      try:
          mp_patcher = mock.patch(
              "torch.multiprocessing.get_context"
          ).__enter__()
          mp_patcher.side_effect = lambda x: dummy
      except Exception:
          mp_patcher = mock.patch(
              "multiprocessing.get_context"
          ).__enter__()
          mp_patcher.side_effect = lambda x: dummy
  
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 1 for calling the BaseUnitTest obj's underlying member method code with example usage: obj.setup_class(cls) without return types