def _is_in_set(self, inpt, metadata):
<EOL>get_set_methods = [m for m in dir(metadata) if '<STR_LIT>' in m and '<STR_LIT>' in m]<EOL>set_results = None<EOL>for m in get_set_methods:<EOL><INDENT>try:<EOL><INDENT>set_results = getattr(metadata, m)()<EOL>break<EOL><DEDENT>except errors.IllegalState:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if set_results is not None and inpt in set_results:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
checks if the input is in the metadata's *_set list