class_docstr: MixIn to give output a namedtuple-like access capabilities with ``to_network_output() function``.
docstr: Convert output into a named (and immuatable) tuple.
  
  This allows tracing the modules as graphs and prevents modifying the output.
  
  Returns:
      named tuple
code: def to_network_output(self, **results):
      """
      Convert output into a named (and immuatable) tuple.
  
      This allows tracing the modules as graphs and prevents modifying the output.
  
      Returns:
          named tuple
      """
      if hasattr(self, "_output_class"):
          Output = self._output_class
      else:
          OutputTuple = namedtuple("output", results)
  
          class Output(OutputMixIn, OutputTuple):
              pass
  
          self._output_class = Output
  
      return self._output_class(**results)
  
imports: from collections import namedtuple
  from contextlib import redirect_stdout
  import inspect
  import os
  from typing import Any, Callable, Dict, List, Tuple, Union
  import lightning.pytorch
  import torch
  from torch import nn
  from torch.fft import irfft, rfft
  import torch.nn.functional
  from torch.nn.utils import rnn
label_desc: Use image node_id 1 for calling the TupleOutputMixIn obj's underlying member method code with example usage: obj.to_network_output() and returns: self