from typing import Any


def validate_data_type(point_type: int, value: Any) -> bool:
    """
    Validate data type，1：number，2：str，3：boolean，4: datetime, 5：location
    :param point_type: data point type
    :param value: value
    :return: True if valid else False
    """
    validate_result = True
    if (point_type in (1, 4)) and not isinstance(value, (int, float)):
        validate_result = False
    elif point_type == 2 and not isinstance(value, str):
        validate_result = False
    elif point_type == 3 and not isinstance(value, bool):
        validate_result = False
    elif point_type == 5 and not isinstance(value, float):
        validate_result = False

    return validate_result