docs: def encode_corpus(self, corpus, output_path):
          """
          Encode all utterances of the given corpus and store them in a :class:`audiomate.container.Container`.
  
          Args:
              corpus (Corpus): The corpus to process.
              output_path (str): The path to store the container with the encoded data.
  
          Returns:
              Container: The container with the encoded data.
          """
  
          out_container = containers.Container(output_path)
          out_container.open()
  
          for utterance in corpus.utterances.values():
              data = self.encode_utterance(utterance, corpus=corpus)
              out_container.set(utterance.idx, data)
  
          out_container.close()
          return out_container