def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank