def METHOD_NAME(param: str, path: str) -> None:
    """Validate that a path parameter adheres to the required format and datatypes.
    Raises:
        ImproperlyConfiguredException: If the parameter has an invalid format.
    """
    if len(param.split(":")) != 2:
        raise ImproperlyConfiguredException(
            f"Path parameters should be declared with a type using the following pattern: '{{parameter_name:type}}', e.g. '/my-path/{{my_param:int}}' in path: '{path}'"
        )
    param_name, param_type = (p.strip() for p in param.split(":"))
    if not param_name:
        raise ImproperlyConfiguredException("Path parameter names should be of length greater than zero")
    if param_type not in param_type_map:
        raise ImproperlyConfiguredException(
            f"Path parameters should be declared with an allowed type, i.e. one of {', '.join(param_type_map.keys())} in path: '{path}'"
        )