code: def test_create_database(client):
      mindsdb_data = {
          "database": {
              "name": "test_postgres",
              "engine": "postgres",
              "parameters": {},
          }
      }
      response = client.post(
          "/api/databases", json=mindsdb_data, follow_redirects=True
      )
      # Make sure we use the CREATED HTTP status code.
      assert "201" in response.status
      new_db = response.get_json()
  
      expected_db = {
          "name": "test_postgres",
          "engine": "postgres",
          "type": "data",
          "id": new_db["id"],
      }
      assert new_db == expected_db
  
imports: import os
  import pytest
  from tempfile import TemporaryDirectory
  from mindsdb.api.http.initialize import initialize_app
  from mindsdb.interfaces.storage import db
  from mindsdb.migrations import migrate
  from mindsdb.utilities.config import Config
label_desc: Use image node_id 5 for calling a global function with example usage: test_create_database(client) without return types