code: def fallible_to_exec_result_or_raise(fallible_result, request):
    
  
    if fallible_result.exit_code == 0:
      return ExecuteProcessResult(
        fallible_result.stdout,
        fallible_result.stderr,
        fallible_result.output_directory_digest
      )
    else:
      raise ProcessExecutionFailure(
        fallible_result.exit_code,
        fallible_result.stdout,
        fallible_result.stderr,
        request.description
      )
docs: Converts a FallibleExecuteProcessResult to a ExecuteProcessResult or raises an error.