code: def test_delete_model(client):
      # Learning Hub home rentals model.
      create_query = """
          CREATE MODEL mindsdb.home_rentals_model_delete
          FROM example_db (SELECT * FROM demo_data.home_rentals)
          PREDICT rental_price
      """
      train_data = {"query": create_query}
      response = client.post(
          "/api/projects/mindsdb/models",
          json=train_data,
          follow_redirects=True,
      )
      assert "201" in response.status
  
      response = client.delete(
          "/api/projects/mindsdb/models/home_rentals_model_delete",
          follow_redirects=True,
      )
      assert "204" in response.status
  
      response = client.get(
          "/api/projects/mindsdb/models/home_rentals_model_delete",
          follow_redirects=True,
      )
      assert "404" 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 16 for calling a global function with example usage: test_delete_model(client) without return types