code: def verify(df, check, *args, **kwargs):
      
      result = check(df, *args, **kwargs)
      try:
          assert result
      except AssertionError as e:
          msg = '{} is not true'.format(check.__name__)
          e.args = (msg, df)
          raise
      return df
docs: Generic verify. Assert that ``check(df, *args, **kwargs)`` is
      true.
  
      Parameters
      ==========
      df : DataFrame
      check : function
          Should take DataFrame and **kwargs. Returns bool
  
      Returns
      =======
      df : DataFrame
          same as the input.