def METHOD_NAME(self, template_name: str, parameter_values: str) -> Any:
    """
    Converts the given template to IAM-ready policy statement by substituting template parameters with the given
    values.
    :param template_name: Name of the template
    :param parameter_values: Values for all parameters of the template
    :return dict: Dictionary containing policy statement
    :raises ValueError: If the given inputs don't represent valid template
    :raises InsufficientParameterValues: If the parameter values don't have values for all required parameters
    """
    if not self.has(template_name):  # type: ignore[no-untyped-call]
        raise TemplateNotFoundException(template_name)
    template = self.get(template_name)  # type: ignore[no-untyped-call]
    return template.to_statement(parameter_values)