code: def skip(filepaths):
      """
      Detects if the 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.
      """
      for filepath in filepaths:
          if not os.path.isfile(filepath):
              return False
      return True
  
file_path: speechbrain/recipes/LibriTTS/TTS/mstacotron2/compute_speaker_embeddings.py
imports: import json
  from speechbrain.inference.encoders import MelSpectrogramEncoder
  from speechbrain.inference.classifiers import EncoderClassifier
  import torchaudio
  import pickle
  import logging
  import os
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: skip(filepaths) and returns: True, False