<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save(self, out, kind=None, **kw):
 """\ Saves the sequence of QR Code to `out`. If `out` is a filename, this method modifies the filename and adds ``<Number of QR Codes>-<Current QR Code>`` to it. ``structured-append.svg`` becomes (if the sequence contains two QR Codes):
 ``structured-append-02-01.svg`` and ``structured-append-02-02.svg`` Please note that using a file or file-like object may result into an invalid serialization format since all QR Codes are written to the same output. See :py:meth:`QRCode.save()` for a detailed enumeration of options. """

        m = len(self)

        def prepare_fn_noop(o, n):
            """\
            Function to enumerate file names, does nothing by default
            """
            return o

        def prepare_filename(o, n):
            """\
            Function to enumerate file names.
            """
            return o.format(m, n)

        prepare_fn = prepare_fn_noop
        if m > 1 and isinstance(out, str_type):
            dot_idx = out.rfind('.')
            if dot_idx > -1:
                out = out[:dot_idx] + '-{0:02d}-{1:02d}' + out[dot_idx:]
                prepare_fn = prepare_filename
        for n, qrcode in enumerate(self, start=1):
            qrcode.save(prepare_fn(out, n), kind=kind, **kw)