code: def test_train_model_no_create_query_aborts(client):
      invalid_create_query = """
          SELECT * FROM models
      """
      train_data = {"query": invalid_create_query}
      response = client.post(
          "/api/projects/mindsdb/models",
          json=train_data,
          follow_redirects=True,
      )
      assert "400" in response.status
  
imports: import os
  import pytest
  from tempfile import TemporaryDirectory
  from mindsdb.api.http.initialize import initialize_app
  from mindsdb.migrations import migrate
  from mindsdb.interfaces.storage import db
  from mindsdb.utilities.config import Config
label_desc: Use image node_id 7 for calling a global function with example usage: test_train_model_no_create_query_aborts(client) without return types