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