def parse_docstring(self, s, pnames=None):
        free_text = []
        header = []
        label = None
        last_argname = None
        for p in split_docstring(s):
            argdoc = self.argdoc_re.match(p)
            if argdoc:
                argname, text = argdoc.groups()
                if free_text:
                    if free_text[-1].endswith(':'):
                        label = free_text.pop()
                    if last_argname:
                        if pnames is None or pnames in last_argname:
                            self.after[last_argname] = free_text
                    else:
                        header.extend(free_text)
                    free_text = []
                last_argname = argname
                try:
                    default_label = self.get_param_type(
                        self.signature.parameters[argname])
                except KeyError:
                    continue
                if pnames is not None and argname not in pnames:
                    continue
                if default_label != LABEL_POS:
                    try:
                        param, _ = self.sections[default_label].pop(argname)
                    except KeyError:
                        continue
                    label_ = label or default_label
                    if label_ not in self.sections:
                        self.sections[label_] = util.OrderedDict()
                else:
                    try:
                        param, _ = self.sections[default_label][argname]
                    except KeyError:
                        continue
                    label_ = default_label
                self.sections[label_][argname] = param, text
            else:
                free_text.append(p)
        if not last_argname:
            header = free_text
            footer = []
        else:
            footer = free_text
        return lines_to_paragraphs(header), lines_to_paragraphs(footer)
dataset/ETHPy150Open epsy/clize/clize/help.py/ClizeHelp.parse_docstring/swapped operands of `in`