def are_datasets_compatible(labeled_dataset_name, unlabeled_dataset_name):
    """Check if a pair of datasets are compatible for semisupevised learning.

  Args:
    labeled_dataset_name (str): a string identifier.
    unlabeled_dataset_name (str): a string identifier.
  Returns:
    Boolean
  """
    valid_combos = [
        ("cifar_unnormalized", "svhn"),
        ("svhn", "cifar_unnormalized"),
        ("svhn", "svhn_extra"),
    ]
    return (labeled_dataset_name == unlabeled_dataset_name) or (
        labeled_dataset_name,
        unlabeled_dataset_name,
    ) in valid_combos