code: def _eq(field, value, document):
      
      try:
          return document.get(field, None) == value
      except TypeError:  # pragma: no cover Python < 3.0
          return False
docs: Returns True if the value of a document field is equal to a given value