def METHOD_NAME(
    self,
    items: Sequence[base.AST],
    *,
    separator: str = ',',
    terminator: Optional[str] = None,
    newlines: bool = True,
    **kwargs: Any
) -> None:
    # terminator overrides separator setting
    #
    separator = terminator if terminator is not None else separator
    size = len(items)
    for i, item in enumerate(items):
        self.visit(item, **kwargs)  # type: ignore
        if i < size - 1 or terminator is not None:
            self.write(separator)
            if newlines:
                self.new_lines = 1
            else:
                self.write(' ')