code: def is_train_dir(dir_: str) -> bool:
      
      return path.exists(path.join(dir_, CXF_CONFIG_FILE)) and \
             path.exists(path.join(dir_, CXF_TRACE_FILE)) and \
             path.exists(path.join(dir_, CXF_LOG_FILE))
docs: Test if the given dir contains training artifacts.