#NEWLINE# def check_samples_slot( value ) : #NEWLINE# #INDENT# "Validate the samples_slot option to the TypeDocumenter.\n\n    Valid positions are 'before-docstring' and\n    'after-docstring'. Using the explicit 'none' disables sample\n    output. The default is after-docstring.\n    " #NEWLINE# if ( not value ) : #NEWLINE# #INDENT# return 'after-docstring' #NEWLINE# #UNINDENT# val = directives . choice ( value , ( 'none' , 'before-docstring' , 'after-docstring' ) ) #NEWLINE# return value