def get_unique_mask_name(task_type: str, mask_name: str) -> str:
  """Prepends the task name to the mask name to ensure uniqueness.

  Args:
    task_type: Name of the task for which the masks are being modified.
    mask_name: Name of the mask e.g. base_eval.

  Returns:
    A mask name that has the task name prepended. Example: los_base_eval.
  """
  unique_mask_name = mask_name
  if task_type not in mask_name:
    unique_mask_name = "_".join([task_type, mask_name])
  return unique_mask_name