def in_out_check(self):
devices = available_devices()<EOL>if not self.in_idx in devices:<EOL><INDENT>raise OSError("<STR_LIT>")<EOL><DEDENT>in_check = devices[self.in_idx]<EOL>if not self.out_idx in devices:<EOL><INDENT>raise OSError("<STR_LIT>")<EOL><DEDENT>out_check = devices[self.out_idx]<EOL>if((in_check['<STR_LIT>'] == <NUM_LIT:0>) and (out_check['<STR_LIT>']==<NUM_LIT:0>)):<EOL><INDENT>raise StandardError('<STR_LIT>')<EOL><DEDENT>elif(in_check['<STR_LIT>'] == <NUM_LIT:0>):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>elif(out_check['<STR_LIT>'] == <NUM_LIT:0>):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>return True<EOL>
Checks the input and output to see if they are valid