def METHOD_NAME(
    configuration: FormioConfigurationWrapper,
    values: DataMapping,
    translate: Callable[[str], str] = str,
) -> None:
    """
    Inject the variable values into the Formio configuration.
    Takes a Formio configuration and fully resolved variable state (mapping of variable
    name to its value as a Python object). The configuration is iterated over and every
    component is checked for properties that can be templated. Note that the
    configuration is mutated in the process!
    :arg configuration: A dictionary containing the static Formio configuration (from
      the form designer)
    :arg values: A mapping of variable key to its value (Python native objects)
    :returns: None - this function mutates the datastructures in place
    .. todo:: Support getting non-string based configuration from variables, such as
       `validate.required` etc.
    """
    for component in configuration:
        for property_name, property_value in iter_template_properties(component):
            if not property_value:
                continue
            match property_value:
                case str():
                    property_value = translate(property_value)
                case [str(), *_]:
                    property_value = [
                        translate(s) for s in property_value if isinstance(s, str)
                    ]
                case [{"label": _}, *_]:
                    for item in property_value:
                        if "label" in item:
                            item["label"] = translate(item["label"])
                case {"values": [*defined_values]}:
                    for item in defined_values:
                        if "label" in item:
                            item["label"] = translate(item["label"])
            try:
                templated_value = render(property_value, values)
            except TemplateSyntaxError as exc:
                logger.debug(
                    "Error during formio configuration 'template' rendering",
                    exc_info=exc,
                )
                # keep the original value on error
                continue
            component[property_name] = templated_value