from typing import Mapping
from typing import Any
from typing import Tuple


def get_retrohunt_info(
    retrohunt: Mapping[str, Any]) -> Tuple[str, str, str, float]:
  """Helper function to extract versionId, retrohuntId, state, and progressPercentage from retrohunt.

  Args:
    retrohunt: Retrohunt in a Mapping format.
  Returns:
    versionId, retrohuntId, state, progressPercentage.
  """
  return (retrohunt.get("versionId", ""), retrohunt.get("retrohuntId", ""),
          retrohunt.get("state", "STATE_UNSPECIFIED"),
          retrohunt.get("progressPercentage", 0.0))