code: def load_records(path):
      records = []
      for i, subdir in tqdm.tqdm(
          list(enumerate(os.listdir(path))), ncols=80, leave=False
      ):
          results_path = os.path.join(path, subdir, "results.jsonl")
          try:
              with open(results_path, "r") as f:
                  for line in f:
                      records.append(json.loads(line[:-1]))
          except IOError:
              pass
  
      return Q(records)
  
imports: import collections
  import json
  import os
  import tqdm
  from domainbed.lib.query import Q
label_desc: Use image node_id 1 for calling a global function with example usage: load_records(path) and returns: Q