code: def entities(self, name_id):
          
          cni = code(name_id)
          return list(self._db[cni].keys())
docs: Returns all the entities of assertions for a subject, disregarding
          whether the assertion still is valid or not.
  
          :param name_id: The subject identifier, a NameID instance
          :return: A possibly empty list of entity identifiers