code: def _gegetate_args(self, options):
          
          for optkey, optval in self._normalize_options(options):
              yield optkey
  
              if isinstance(optval, (list, tuple)):
                  assert len(optval) == 2 and optval[0] and optval[
                      1], 'Option value can only be either a string or a (tuple, list) of 2 items'
                  yield optval[0]
                  yield optval[1]
              else:
                  yield optval
docs: Generator of args parts based on options specification.