code: def tuple_len(self):
          
          try:
              return self._tuple_len
          except AttributeError:
              raise NotImplementedError("Class {} does not implement attribute 'tuple_len'.".format(self.__class__.__name__))
docs: Length of tuples produced by this generator.