def METHOD_NAME(self, positional, named, variables=None):
    # `variables` is None in dry-run mode and when using Libdoc.
    if variables:
        positional = variables.replace_list(positional, self._resolve_until)
        named = list(self._replace_named(named, variables.replace_scalar))
    else:
        # If `var` isn't a tuple, it's a &{dict} variables.
        named = [var if isinstance(var, tuple) else (var, var) for var in named]
    return positional, named