def _all_usage_keys(descriptors, aside_types):
 usage_ids = set()
 for descriptor in descriptors:
  usage_ids.add(descriptor.scope_ids.usage_id)
  for aside_type in aside_types:
   usage_ids.add(AsideUsageKeyV1(descriptor.scope_ids.usage_id, aside_type))
   usage_ids.add(AsideUsageKeyV2(descriptor.scope_ids.usage_id, aside_type))
 return usage_ids

def _all_usage_keys ( descriptors , aside_types ) : usage_ids = set ( ) for descriptor in descriptors : usage_ids . add ( descriptor . scope_ids . usage_id ) for aside_type in aside_types : usage_ids . add ( AsideUsageKeyV1 ( descriptor . scope_ids . usage_id , aside_type ) ) usage_ids . add ( AsideUsageKeyV2 ( descriptor . scope_ids . usage_id , aside_type ) ) return usage_ids
return a set of all usage_ids for the descriptors and for as all asides in aside_types for those descriptors .