def equals(self, ctx):
    if self.kwargs.get("task_retry_count", 0) != ctx.task_retry_count:
      return False
    return True
Check to see if ctx matches arguments.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/handlers_test.py/MatchesContext.equals