code: def _handle_compare(self, node):
      left = self[node.left]
      result = True
  
      for op, right in zip(node.ops, node.comparators):
          right = self[right]
  
          op_type = type(op)
          op_func = {
              ast.Eq: operator.eq,
              ast.NotEq: operator.ne,
              ast.Lt: operator.lt,
              ast.LtE: operator.le,
              ast.Gt: operator.gt,
              ast.GtE: operator.ge,
              ast.Is: operator.is_,
              ast.IsNot: operator.is_not,
              ast.In: (lambda a, b: a in b),
              ast.NotIn: (lambda a, b: a not in b),
          }[op_type]
  
          if op_type not in (ast.Is, ast.IsNot):
              of_standard_types(
                  left, check_dict_values=False, deep=True
              )
              of_standard_types(
                  right, check_dict_values=False, deep=True
              )
  
          try:
              result = op_func(left, right)
          except Exception as e:
              raise CannotEval from e
          if not result:
              return result
          left = right
  
      return result
  
imports: import ast
  import builtins
  import operator
  from collections import ChainMap, OrderedDict, deque
  from contextlib import suppress
  from types import FrameType
  from typing import Any, Tuple, Iterable, List, Mapping, Dict, Union, Set
  from pure_eval.my_getattr_static import getattr_static
  from pure_eval.utils import CannotEval, has_ast_name, copy_ast_without_context, is_standard_types, of_standard_types, is_any, of_type, ensure_dict
label_desc: Use image node_id 6 for calling the Evaluator obj's underlying member method code with example usage: obj._handle_compare(node) and returns: result, result