def METHOD_NAME():
    model_id = 'damo/cv_ddsar_face-detection_iclr23-damofd'
    # mini dataset only for unit test, remove '_mini' for full dataset.
    ms_ds_widerface = MsDataset.load('WIDER_FACE_mini', namespace='shaoxuan')
    data_path = ms_ds_widerface.config_kwargs['split_config']
    train_dir = data_path['train']
    val_dir = data_path['validation']
    train_root = train_dir + '/' + os.listdir(train_dir)[0] + '/'
    val_root = val_dir + '/' + os.listdir(val_dir)[0] + '/'
    max_epochs = 1  # run epochs in unit test
    cache_path = snapshot_download(model_id)
    tmp_dir = tempfile.TemporaryDirectory().name
    if not os.path.exists(tmp_dir):
        os.makedirs(tmp_dir)
    return train_root, val_root, max_epochs, cache_path, tmp_dir