code: def check_dvoice_folders(data_folder, language):
      """
      Check if the data folder actually contains the DVoice dataset.
      If not, raises an error.
      Returns
      -------
      None
      Raises
      ------
      FileNotFoundError
          If data folder doesn't contain DVoice dataset.
      """
  
      ALFFA_LANGUAGES = ["amharic", "fongbe", "wolof"]
      if (
          language in ALFFA_LANGUAGES
          or language == "swahili"
          or language == "multilingual"
      ):
          files_str = "/"
      else:
          files_str = "/wavs"
  
      # Checking clips
      if not os.path.exists(data_folder + files_str):
          err_msg = (
              "the folder %s does not exist (it is expected in "
              "the DVoice dataset)" % (data_folder + files_str)
          )
          raise FileNotFoundError(err_msg)
  
imports: import os
  import csv
  import re
  import logging
  import torchaudio
  import unicodedata
  from tqdm.contrib import tzip
  import random
  import pandas
  from tqdm import tqdm
  import numpy
  import glob
  from speechbrain.dataio.dataio import read_audio_info
label_desc: Use image node_id 7 for calling a global function with example usage: check_dvoice_folders(data_folder, language) without return types