class_docstr: QueryGenerator is a helper object to write filters for runs.
class_docstr_tok: ["QueryGenerator","is","a","helper","object","to","write","filters","for","runs","."]
code: def filter_to_mongo(self, filter):
      if self._is_individual(filter):
          return self._to_mongo_individual(filter)
      elif self._is_group(filter):
          return {
              self.GROUP_OP_TO_MONGO[filter["op"]]: [
                  self.filter_to_mongo(f) for f in filter["filters"]
              ]
          }
  
file_path: wandb/wandb/apis/public/query_generator.py
label_desc: Use image node_id 11 for calling the QueryGenerator obj's underlying member method code with example usage: obj.filter_to_mongo(filter) and returns: self, dict