code: def _handle_compare(self, node):
      # only left side can be a col
      left = self.front_to_back(self._handle_fields(node.left))
      op = self._handle_ops(node.ops[0])
      right = self._handle_fields(node.comparators[0])
  
      # Eq has no op for some reason
      if op == "=":
          return {left: right}
      else:
          return {left: {op: right}}
  
imports: import ast
  import json
  import sys
  import urllib
  from wandb_gql import gql
  import wandb
  from wandb.apis import public
  from wandb.apis.attrs import Attrs
  from wandb.apis.paginator import Paginator
  from wandb.sdk.lib import ipython
label_desc: Use image node_id 2 for calling the PythonMongoishQueryGenerator obj's underlying member method code with example usage: obj._handle_compare(node) and returns: dict, dict