def METHOD_NAME(
    weekly_cases_per_100k, beds_with_covid_ratio, weekly_admissions_per_100k
) -> Optional[CommunityLevel]:
    """Calculate the overall community level for a region based on metric levels.
    Note: As of April 14, 2023 we are harmonizing our score with the CDC in the
    case where Daily New Cases are missing, we are going to treat it as "low".
    If the number of cases in 7 days for a jurisdiction is missing, the
    7-day case rate is assigned to the “low” category. If both 7-day
    admissions and 7-day percentage inpatient beds indicators are N/A, the
    community burden category is assigned N/A.    
    We know have two states (Iowa and Florida) that have stopped case reporting.
    Instead of leaving them permanently gray on the map, we are planning to
    transition to flagging DNC as unknown, but still scoring on the hospital
    metrics.
    Therefore, an Unknown/None value for DNC no longer necessarily signals a
    data quality issue that we should address immediately.
    """
    # Return None if no valid hospital component metrics are available.
    if is_invalid_value(beds_with_covid_ratio) and is_invalid_value(weekly_admissions_per_100k):
        return None
    weekly_cases_per_100k = (
        weekly_cases_per_100k if not is_invalid_value(weekly_cases_per_100k) else 0
    )
    beds_with_covid_ratio = (
        beds_with_covid_ratio if not is_invalid_value(beds_with_covid_ratio) else 0
    )
    weekly_admissions_per_100k = (
        weekly_admissions_per_100k if not is_invalid_value(weekly_admissions_per_100k) else 0
    )
    if weekly_cases_per_100k < 200:
        if weekly_admissions_per_100k < 10 and beds_with_covid_ratio < 0.1:
            return CommunityLevel.LOW
        elif weekly_admissions_per_100k >= 20 or beds_with_covid_ratio >= 0.15:
            return CommunityLevel.HIGH
        else:
            return CommunityLevel.MEDIUM
    else:
        if weekly_admissions_per_100k < 10 and beds_with_covid_ratio < 0.1:
            return CommunityLevel.MEDIUM
        else:
            return CommunityLevel.HIGH