def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank