code: def test_get_model_by_version(client):
      response = client.get(
          "/api/projects/mindsdb/models/home_rentals_model.1",
          follow_redirects=True,
      )
      model_ver_1 = response.get_json()
      response = client.get(
          "/api/projects/mindsdb/models/home_rentals_model",
          follow_redirects=True,
      )
      model_active_ver = response.get_json()
  
      expected_model = model_ver_1.copy()
      expected_model["active"] = True
      expected_model["error"] = None
      expected_model[
          "fetch_data_query"
      ] = "SELECT * FROM demo_data.home_rentals"
      expected_model["name"] = "home_rentals_model"
      expected_model["predict"] = "rental_price"
      expected_model["version"] = 1
  
      assert model_ver_1 == expected_model
  
      assert model_active_ver == expected_model
  
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 10 for calling a global function with example usage: test_get_model_by_version(client) without return types