can remove `dict` call in line 135 since keyed_args is already a `dict` at this point.