code: def validate(self, model, checks=[]):
          
          custom = [
              check_partial(reaction_id_check,
                            frozenset(r.id for r in model.reactions))
          ]
          super(Medium, self).validate(model=model, checks=checks + custom)
docs: Use a defined schema to validate the medium table format.