code: def num_channels(self):
          
          if(self.inspect_value('index') is None):
              if(len(self.generators)>0):
                  return self.generators[0].num_channels()
              return 0
  
          return self.get_current_generator().num_channels()
docs: Get the number of channels in the input generators.