code: def crawl_and_remove_hidden_from_decathlon(
      folder,
      train_images_dir="imagesTr",
      train_labels_dir="labelsTr",
      test_images_Tr="imagesTs",
  ):
      subf = [sub_dir for sub_dir in os.listdir(folder)]
      assert train_images_dir in subf, (
          "This does not seem to be a decathlon folder. Please give me a "
          "folder that starts with TaskXX and has the subdirs imagesTr, "
          "labelsTr and imagesTs."
      )
      assert test_images_Tr in subf, (
          "This does not seem to be a decathlon folder. Please give me a "
          "folder that starts with TaskXX and has the subdirs imagesTr, "
          "labelsTr and imagesTs."
      )
      assert train_labels_dir in subf, (
          "This does not seem to be a decathlon folder. Please give me a "
          "folder that starts with TaskXX and has the subdirs imagesTr, "
          "labelsTr and imagesTs."
      )
      _ = [
          os.remove(join_paths(folder, sub_file))
          for sub_file in os.listdir(folder)
          if sub_file.startswith(".")
      ]
      _ = [
          os.remove(join_paths(folder, train_images_dir, sub_file))
          for sub_file in os.listdir(
              join_paths(folder, train_images_dir)
          )
          if sub_file.startswith(".")
      ]
      _ = [
          os.remove(join_paths(folder, train_labels_dir, sub_file))
          for sub_file in os.listdir(
              join_paths(folder, train_labels_dir)
          )
          if sub_file.startswith(".")
      ]
      _ = [
          os.remove(join_paths(folder, test_images_Tr, sub_file))
          for sub_file in os.listdir(join_paths(folder, test_images_Tr))
          if sub_file.startswith(".")
      ]
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/preprocess_utils/convert_to_decathlon.py
imports: import os
  import shutil
  import numpy
  import SimpleITK
  from multiprocessing import Pool
  from .path_utils import join_paths
label_desc: Use image node_id 2 for calling a global function with example usage: crawl_and_remove_hidden_from_decathlon(folder, train_images_dir, train_labels_dir, test_images_Tr) without return types