code: def get_relationships_for_idents(self, cid, idents):
          '''Get relationships between ``idents`` and a ``cid``.
  
          Returns a dictionary mapping the identifiers in ``idents``
          to either None, if no relationship label is found between
          the identifier and ``cid``, or a RelationshipType classifying
          the strength of the relationship between the identifier and
          ``cid``.
          '''
          keys = [(cid, ident,) for ident in idents]
          key_ranges = zip(keys, keys)
          mapping = {}
          for k, v in self.kvl.scan(self.TABLE, *key_ranges):
              label = self._label_from_kvlayer(k, v)
              ident = label.other(cid)
              rel_strength = label.rel_strength
              mapping[ident] = label.rel_strength
  
          return mappinf get_relationships_for_idents(self, cid, idents):
          '''Get relationships between ``idents`` and a ``cid``.
  
          Returns a dictionary mapping the identifiers in ``idents``
          to either None, if no relationship label is found between
          the identifier and ``cid``, or a RelationshipType classifying
          the strength of the relationship between the identifier and
          ``cid``.
          '''
          keys = [(cid, ident,) for ident in idents]
          key_ranges = zip(keys, keys)
          mapping = {}
          for k, v in self.kvl.scan(self.TABLE, *key_ranges):
              label = self._label_from_kvlayer(k, v)
              ident = label.other(cid)
              rel_strength = label.rel_strength
              mapping[ident] = label.rel_strength
  
          return mapping
docs: Get relationships between ``idents`` and a ``cid``.
  
          Returns a dictionary mapping the identifiers in ``idents``
          to either None, if no relationship label is found between
          the identifier and ``cid``, or a RelationshipType classifying
          the strength of the relationship between the identifier and
          ``cid``.