class_docstr: Contais some helpful set of methods and attributes for tests execution.
class_docstr_tok: ["Contais","some","helpful","set","of","methods","and","attributes","for","tests","execution","."]
code: def create_database(self, db_data):
      db_type = db_data["type"]
      _query = (
          "CREATE DATABASE %s WITH ENGINE = '%s', PARAMETERS = %s;"
          % (
              db_type.upper(),
              db_type,
              json.dumps(db_data["connection_data"]),
          )
      )
  
      self.query(_query)
      # and try to drop one of the datasources
      if db_type == "mysql":
          self.query(f"DROP DATABASE {db_type.upper()};")
          # and create again
          self.query(_query)
  
imports: import os
  import time
  import tempfile
  import json
  from pathlib import Path
  import docker
  import pandas
  import requests
  import pytest
  from .conftest import docker_inet_ip, TEMP_DIR
label_desc: Use image node_id 3 for calling the BaseStuff obj's underlying member method code with example usage: obj.create_database(db_data) without return types