docstr: Create database pointer for all related domains.
docstr_tok: ["Create","database","pointer","for","all","related","domains","."]
code: def get_match_num(self, constraints, return_entry=False):
      """Create database pointer for all related domains."""
      match = {"general": ""}
      entry = {}
      # if turn_domains is None:
      #     turn_domains = db_domains
      for domain in all_domains:
          match[domain] = ""
          if domain in db_domains and constraints.get(domain):
              matched_ents = self.queryJsons(
                  domain, constraints[domain]
              )
              match[domain] = len(matched_ents)
              if return_entry:
                  entry[domain] = matched_ents
      if return_entry:
          return entry
      return match
  
file_path: TextBox/textbox/evaluator/utils/multiwoz/db_ops.py
imports: import json, random, sqlite3
  from .ontology import all_domains, db_domains
label_desc: Use image node_id 6 for calling the MultiWozDB obj's underlying member method code with example usage: obj.get_match_num(constraints, return_entry) and returns: match, entry