code: def get_operator(symbol: str) -> Operator:
      if symbol not in symbols_to_operator:
          raise QueryError(f"unknown operator {symbol}")
      return symbols_to_operator[symbol]
  
imports: import abc
  from typing import ClassVar, Set
  from ...exceptions import QueryError
label_desc: Use image node_id 2 for calling a global function with example usage: get_operator(symbol) and returns: symbols_to_operator