def get_script_to_family_ids(family_map):
  script_to_family_ids = collections.defaultdict(set)
  for key in family_map:
    script_key = family_map[key].rep_member.script
    for script in noto_fonts.script_key_to_scripts(script_key):
      script_to_family_ids[script].add(key)
  return script_to_family_ids
test that we can assign 'd' to a B, since B/D
dataset/ETHPy150Open googlei18n/nototools/nototools/generate_website_2_data.py/get_script_to_family_ids--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/inheritance/test_basic.py/PolymorphicAttributeManagementTest.test_valid_assignment_upwards