code: def get_test_records(records):
      """Given records with a common test env, get the test records (i.e. the
      records with *only* that single test env and no other test envs)
      """
      return records.filter(lambda r: len(r["args"]["test_envs"]) == 1)
  
file_path: generalized-moe/domainbed/model_selection.py
imports: import itertools
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: get_test_records(records) and returns: records