class_docstr: Resolver objects handle the process of looking up actual names and types.
  
  Unless noted otherwise, all resolve_* methods:
    * have a first namespace argument, mapping string to actual values
    * have a second types_namespace argument, mapping string to actual inferred
      types
    * specify names as QN objects
    * specify types as a Set of inferred types
  
  Unless noted otherwise, all resolve_* methods must return either:
    * a set of `type` objects
    * None
class_docstr_tok: ["Resolver","objects","handle","the","process","of","looking","up","actual","names","and","types",".","Unless","noted","otherwise",",","all","resolve_","*","methods",":","*","have","a","first","namespace","argument",",","mapping","string","to","actual","values","*","have","a","second","types_namespace","argument",",","mapping","string","to","actual","inferred","types","*","specify","names","as","QN","objects","*","specify","types","as","a","Set","of","inferred","types","Unless","noted","otherwise",",","all","resolve_","*","methods","must","return","either",":","*","a","set","of","`","type","`","objects","*","None"]
docstr: Resolves the return type of a unary operation.
docstr_tok: ["Resolves","the","return","type","of","a","unary","operation","."]
code: def res_compare(self, ns, types_ns, node, left, right):
      """Resolves the return type of a unary operation."""
      raise NotImplementedError("subclasses must implement")
  
imports: import itertools
  from typing import Any, Callable, Dict, Set
  import gast
  from tensorflow.python.autograph.pyct import anno
  from tensorflow.python.autograph.pyct import cfg
  from tensorflow.python.autograph.pyct import qual_names
  from tensorflow.python.autograph.pyct import transformer
  from tensorflow.python.autograph.pyct.static_analysis import activity
  from tensorflow.python.autograph.pyct.static_analysis import annos
label_desc: Use image node_id 6 for calling the Resolver obj's underlying member method code with example usage: obj.res_compare(ns, types_ns, node, left, right) without return types