code: def test_update_view_creates(client):
      view_data = {
          "view": {"query": "SELECT * FROM example_db.house_sales"}
      }
  
      response = client.put(
          "/api/projects/mindsdb/views/test_update_view_creates",
          json=view_data,
          follow_redirects=True,
      )
  
      assert "201" in response.status
  
      created_view = response.get_json()
      expected_view = {
          "name": "test_update_view_creates",
          "query": "SELECT * FROM example_db.house_sales",
          "id": created_view["id"],
      }
  
      assert created_view == expected_view
  
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 12 for calling a global function with example usage: test_update_view_creates(client) without return types