def METHOD_NAME(
    cls,
    address_form,
    params: Dict[str, str],
    values_check=True,
    required_check=True,
):
    address_errors_dict = address_form.errors.as_data()
    errors_dict = {}
    for field, errors in address_errors_dict.items():
        for error in errors:
            if not error.params:
                error.params = params
            else:
                error.params.update(params)
            if error.code != "required":
                if values_check:
                    errors_dict[field] = errors
                else:
                    address_form.cleaned_data[field] = address_form.data[field]
            if error.code == "required":
                field_value = address_form.data.get(field)
                if required_check:
                    errors_dict[field] = errors
                elif field_value is not None:
                    address_form.cleaned_data[field] = field_value
    return errors_dict