docs: def generate_corpus(n_issuers,
                      n_tracks_per_issuer,
                      n_utts_per_track,
                      n_ll_per_utt,
                      n_label_per_ll,
                      rand=None):
      """
      Generate a corpus with mock data.
      """
      corpus = audiomate.Corpus()
  
      for issuer in generate_issuers(n_issuers, rand):
          corpus.import_issuers(issuer)
  
          n_tracks = rand.randint(*n_tracks_per_issuer)
          tracks = generate_tracks(n_tracks, rand)
          corpus.import_tracks(tracks)
  
          n_utts = rand.randint(*n_utts_per_track)
          for track in tracks:
              utts = generate_utterances(
                  track,
                  issuer,
                  n_utts,
                  n_ll_per_utt,
                  n_label_per_ll,
                  rand
              )
  
              corpus.import_utterances(utts)
  
      return corpus