def _get_training_dataset_type_info(featurestore_metadata, external=False):
    """
    Gets the type information of a training datasetthat the backend expects

    Args:
         :featurestore_metadata: metadata of the featurestore
         :external: whether it is an external featuregroup or not

    Returns:
        the type information of the training dataset, tuple of (type, dtotype)
    """
    if external:
        training_dataset_type = featurestore_metadata.settings.external_training_dataset_type
        training_dataset_type_dto = featurestore_metadata.settings.external_training_dataset_dto_type
    else:
        training_dataset_type = featurestore_metadata.settings.hopsfs_training_dataset_type
        training_dataset_type_dto = featurestore_metadata.settings.hopsfs_training_dataset_dto_type
    return training_dataset_type, training_dataset_type_dto