def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank