def METHOD_NAME(params: Dict[str, Any], search_space: Dict[str, BaseDistribution]) -> bool:
    for param_name in params.keys():
        param, param_distribution = params[param_name], search_space[param_name]
        if not param_distribution._contains(param_distribution.to_internal_repr(param)):
            return False
    return True