class_docstr: Meta data for a kaldi corpus directory. 
class_docstr_tok: ["Meta","data","for","a","kaldi","corpus","directory","."]
docstr: Sanity check. Make sure everything is (probably) OK. 
docstr_tok: ["Sanity","check",".","Make","sure","everything","is","(","probably",")","OK","."]
code: def validate(self):
      """Sanity check. Make sure everything is (probably) OK."""
      # TODO: more efficient and robust. Also check speakers.
      for utt_key in self.utts.keys():
          first_utt_key = utt_key
          break
      num_props = len(self.utts[first_utt_key])
      for utt_key, utt in self.utts.items():
          if len(utt) != num_props:
              logging.warning(
                  "Utt %s has unequal number of props with %s."
                  % (utt_key, first_utt_key)
              )
              return False
          if "spkid" not in utt:
              utt["spkid"] = self.spks[utt.spk].id
      logging.warning(
          "All utts have same number of props, data dir appears to be OK."
      )
      return True
  
file_path: delta/delta/utils/kaldi/kaldi_dir.py
imports: import os
  from collections import defaultdict
  from absl import logging
label_desc: Use image node_id 3 for calling the KaldiMetaData obj's underlying member method code with example usage: obj.validate() and returns: True, False