def report_failed_trial(trial_id: int, state: str) -> None:
    print(f'Trial {trial_id} was not COMPLETED but {state}', file=sys.stderr)
    print_trial_logs(trial_id)
def report_failed_trial(trial_id: int, state: str) -> None:
    print(f'Trial {trial_id} was not COMPLETED but {state}', file=sys.stderr)
    print_trial_logs(trial_id)