def _check_margeff_args(at, method):
 if (at not in ['overall', 'mean', 'median', 'zero', 'all']):
  raise ValueError(('%s not a valid option for `at`.' % at))
 if (method not in ['dydx', 'eyex', 'dyex', 'eydx']):
  raise ValueError(('method is not understood.  Got %s' % method))

def _check_margeff_args ( at , method ) : if ( at not in [ 'overall' , 'mean' , 'median' , 'zero' , 'all' ] ) : raise ValueError ( ( '%s not a valid option for `at`.' % at ) ) if ( method not in [ 'dydx' , 'eyex' , 'dyex' , 'eydx' ] ) : raise ValueError ( ( 'method is not understood.  Got %s' % method ) )
checks valid options for margeff .