code: def test_create_database_already_exists_abort(client):
      mindsdb_data = {
          "database": {
              "name": "test_duplicate",
              "engine": "postgres",
              "parameters": {},
          }
      }
      response = client.post(
          "/api/databases", json=mindsdb_data, follow_redirects=True
      )
      assert "201" in response.status
      create_duplicate_response = client.post(
          "/api/databases", json=mindsdb_data, follow_redirects=True
      )
      # Make sure we use CONFLICT status code.
      assert "409" in create_duplicate_response.status
  
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 6 for calling a global function with example usage: test_create_database_already_exists_abort(client) without return types