def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank