def lines_once(cls, code, **kwargs):
        """One-off code generation using :meth:`lines`.
        
        If keyword args are provided, initialized using
        :meth:`with_id_processor`.
        """
        if kwargs:
            g = cls.with_id_processor()
            g._append_context(kwargs)
        else:
            g = cls()
        g.lines(code)
        return g.code