<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def set_upstream_dns( cls, addresses: typing.Optional[typing.Sequence[str]]):
 """See `get_upstream_dns`."""

        await cls.set_config("upstream_dns", (
            "" if addresses is None else",".join(addresses)))