code: def skip(splits, save_folder, conf):
      """
      Detects if the cvss data_preparation has been already done.
      If the preparation has been done, we can skip it.
  
      Returns
      -------
      bool
          if True, the preparation phase can be skipped.
          if False, it must be done.
      """
      # Checking json files
      skip = True
  
      split_files = {
          "train": "train.json",
          "valid": "valid.json",
          "valid_small": "valid_small.json",
          "test": "test.json",
      }
  
      for split in splits:
          if not os.path.isfile(
              os.path.join(save_folder, split_files[split])
          ):
              skip = False
  
      #  Checking saved options
      save_opt = os.path.join(save_folder, OPT_FILE)
      if skip is True:
          if os.path.isfile(save_opt):
              opts_old = load_pkl(save_opt)
              if opts_old == conf:
                  skip = True
              else:
                  skip = False
          else:
              skip = False
      return skip
  
file_path: speechbrain/recipes/CVSS/cvss_prepare.py
imports: import os
  import csv
  import json
  import logging
  import random
  import tqdm
  import pathlib
  import torchaudio
  from speechbrain.dataio.dataio import load_pkl, save_pkl
label_desc: Use image node_id 2 for calling a global function with example usage: skip(splits, save_folder, conf) and returns: skip