code: def create_from_assocs(self, assocs, **args):
          
          amap = defaultdict(list)
          subject_label_map = {}
          for a in assocs:
              subj = a['subject']
              subj_id = subj['id']
              subj_label = subj['label']
              subject_label_map[subj_id] = subj_label
              if not a['negated']:
                  amap[subj_id].append(a['object']['id'])
  
          aset = AssociationSet(subject_label_map=subject_label_map, association_map=amap, **args)
          aset.associations_by_subj = defaultdict(list)
          aset.associations_by_subj_obj = defaultdict(list)
          for a in assocs:
              sub_id = a['subject']['id']
              obj_id = a['object']['id']
              aset.associations_by_subj[sub_id].append(a)
              aset.associations_by_subj_obj[(sub_id,obj_id)].append(a)
  
          return aset
docs: Creates from a list of association objects