code: def _freeze_relations(self, relations):
          
  
          if relations:
              sel = relations[0]
              sel.relations.extend(relations[1:])
              return ct.SelectorList([sel.freeze()])
          else:
              return ct.SelectorList()
docs: Freeze relation.