code: def output_channels(self):
      
      if callable(self._output_channels):
        self._output_channels = self._output_channels()
      # Channel must be integer.
      self._output_channels = int(self._output_channels)
      return self._output_channels
docs: Returns the number of output channels.