def dbg(self, show_peek=False):
        """
        Arguments:
        - `show_peek`: Show if this is a .PEEK or not. This is
          improtant because a FETCH reply does NOT include the peek
          information, but we want it for when we dump debug strings.
        """
        result = self.actual_command
        if result == "BODY":
            if show_peek and self.peek:
                result = "BODY.PEEK"
            if self.section is not None:
                # we need to be careful how we convert HEADER.FIELDS and
                # HEADER.FIELDS.NOT back in to a string.
                #
                sects = []
                for s in self.section:
                    # If this section is a list or a tuple then we have a
                    # 'header.<fields<.not>> (header_list)' section and we need
                    # convert that to a proper string for our FETCH response.
                    #
                    if isinstance(s, (list, tuple)):
                        sects.append("%s (%s)" %
                                     (str(s[0]).upper(),
                                      ' '.join(x for x in s[1])))
                    else:
                        sects.append(str(s).upper())
                result += '[%s]' % '.'.join(sects)
            if self.partial:
                result += "<%d.%d>" % (self.partial[0], self.partial[1])
        return result

    #######################################################################
    #
dataset/ETHPy150Open scanner/asimap/asimap/fetch.py/FetchAtt.dbg/original