code: def test_views(self):
      query = """
              CREATE VIEW mindsdb.{}
              FROM test_integration_{} (
                  select * from rentals limit 50
              )
          """
  
      for cid, char in [(CID_A, "a"), (CID_B, "b")]:
          self.sql_via_http(
              query.format(f"test_view_{char}", char),
              company_id=cid,
              expected_resp_type=RESPONSE_TYPE.OK,
          )
  
          tables = self.get_tables_in("mindsdb", cid)
          self.assert_list(
              tables,
              {
                  "jobs",
                  "jobs_history",
                  "models",
                  "models_versions",
                  "mdb_triggers",
                  "chatbots",
                  f"test_view_{char}",
              },
          )
  
      for cid, char in [(CID_A, "a"), (CID_B, "b")]:
          response = self.sql_via_http(
              f"select * from mindsdb.test_view_{char}",
              company_id=cid,
              expected_resp_type=RESPONSE_TYPE.TABLE,
          )
          assert len(response["data"]) == 50
  
          response = self.sql_via_http(
              f"DROP VIEW mindsdb.test_view_{char}",
              company_id=cid,
              expected_resp_type=RESPONSE_TYPE.OK,
          )
  
          tables = self.get_tables_in("mindsdb", cid)
          self.assert_list(
              tables,
              {
                  "jobs",
                  "jobs_history",
                  "models",
                  "models_versions",
                  "mdb_triggers",
                  "chatbots",
              },
          )
  
          self.sql_via_http(
              f"select * from mindsdb.test_view_{char}",
              company_id=cid,
              expected_resp_type=RESPONSE_TYPE.ERROR,
          )
  
imports: from pathlib import Path
  import json
  import pytest
  from pymongo import MongoClient
  from mindsdb.api.executor.data_types.response_type import RESPONSE_TYPE
  from .conftest import CONFIG_PATH
  from .http_test_helpers import HTTPHelperMixin
label_desc: Use image node_id 9 for calling the TestCompanyIndependent obj's underlying member method code with example usage: obj.test_views() without return types