def METHOD_NAME(self, flag_index: int) -> Flag:
    if not 1 <= flag_index <= len(self.all()):
        raise Exception(f"Flag index out of range (1-{len(self.all())}).")
    return self.all()[flag_index - 1]