def is_option(value, *options):
 if (not isinstance(value, string_type)):
  raise VdtTypeError(value)
 if (not (value in options)):
  raise VdtValueError(value)
 return value

def is_option ( value , * options ) : if ( not isinstance ( value , string_type ) ) : raise VdtTypeError ( value ) if ( not ( value in options ) ) : raise VdtValueError ( value ) return value
this check matches the value to any of a set of options .