def __resolve_default(self, v):
        if isinstance(v, (list, tuple)) and len(v) == 1:
            v = v[0]

        if v == 'stdin':
            self.option_type = TYPE_INPUT
            return sys.stdin
        if v == 'stdout':
            self.option_type = TYPE_OUTPUT
            return sys.stdout
        if v == 'stderr':
            self.option_type = TYPE_OUTPUT
            return sys.stderr
        return v
helper function to resolve stdin, stdout and stderr default
dataset/ETHPy150Open thasso/pyjip/jip/options.py/Option.__resolve_default