def __init__(self, name, filename=None):
        self.name = name
        super(NamedRequirements, self).__init__(filename=filename)
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank