text: # coding: utf8
  from typing import Any, Dict, List
  
  from clinicadl import MapsManager
  
  
  def train(
      maps_dir: str,
      train_dict: Dict[str, Any],
      split_list: List[int],
      erase_existing: bool = True,
  ):
  
      maps_manager = MapsManager(maps_dir, train_dict, verbose=None)
      maps_manager.train(split_list=split_list, overwrite=erase_existing)
  