def _to_report(name):
 if (name in _REPORTS):
  return name
 raise UsageError('Unrecognized report {}. {}'.format(name, _to_report.coerceDoc))

def _to_report ( name ) : if ( name in _REPORTS ) : return name raise UsageError ( 'Unrecognized report {}. {}' . format ( name , _to_report . coerceDoc ) )
ensure that name is a valid report .