code: def list_corpus_files(dotted_path):
      """
      Return a list of file paths to each data file in the specified corpus.
      """
      corpus_path = get_file_path(
          dotted_path, extension=CORPUS_EXTENSION
      )
      paths = []
  
      if os.path.isdir(corpus_path):
          paths = glob.glob(
              corpus_path + "/**/*." + CORPUS_EXTENSION, recursive=True
          )
      else:
          paths.append(corpus_path)
  
      paths.sort()
      return paths
  
file_path: ChatterBot/chatterbot/corpus.py
imports: import os
  import io
  import glob
  from pathlib import Path
  from chatterbot.exceptions import OptionalDependencyImportError
label_desc: Use image node_id 3 for calling a global function with example usage: list_corpus_files(dotted_path) and returns: paths