code: def test_create_table(client):
      table_data = {
          "table": {
              "name": "test_create_table_house_sales",
              "select": "SELECT * FROM example_db.house_sales",
              "replace": True,
          }
      }
      response = client.post(
          "/api/databases/example_db/tables",
          json=table_data,
          follow_redirects=True,
      )
      # Make sure we use the CREATED HTTP status code.
      assert "201" in response.status
      new_table = response.get_json()
  
      expected_table = {
          "name": "test_create_table_house_sales",
          "type": "data",
      }
      assert new_table == expected_table
  
      # Clean up.
      client.delete(
          "/api/databases/example_db/tables/test_create_table_house_sales",
          follow_redirects=True,
      )
  
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_table(client) without return types