code: def validate(self, query: Query) -> None:
      security_manager.raise_for_access(query=query)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from superset import security_manager
  from superset.commands.sql_lab.execute import CanAccessQueryValidator
label_desc: Use image node_id 1 for calling the CanAccessQueryValidatorImpl obj's underlying member method code with example usage: obj.validate(query) without return types