def METHOD_NAME(self, output_id: int, fact: Union[InferenceFact, str, None]) -> None:
    """Change the InferenceFact of the `output_id`th output."""
    self._valid()
    if isinstance(fact, str):
        fact = self.fact(fact)
    if fact == None:
        check(lib.tract_inference_model_set_output_fact(self.ptr, output_id, None))
    else:
        check(lib.tract_inference_model_set_output_fact(self.ptr, output_id, fact.ptr))