code: def conditions(self, sp_entity_id):
          
          return factory(saml.Conditions,
                         not_before=instant(),
                         # How long might depend on who's getting it
                         not_on_or_after=self.not_on_or_after(sp_entity_id),
                         audience_restriction=[factory(
                             saml.AudienceRestriction,
                             audience=[factory(saml.Audience,
                                               text=sp_entity_id)])])
docs: Return a saml.Condition instance
  
          :param sp_entity_id: The SP entity ID
          :return: A saml.Condition instance