public static TaskAttemptContext enrichContextWithAttemptWrapper(TaskAttemptContext taskAttemptContext) {
    TaskAttemptID wrapped = TezUtil.taskAttemptWrapper(taskAttemptContext.getTaskAttemptID());
    return new TaskAttemptContextImpl(taskAttemptContext.getJobConf(), wrapped);
  }
Creates a new taskAttemptContext by replacing the taskAttemptID with a wrapped object.
For the rationale behind this enrichment, please refer to point #2 in the docs of {@link TaskAttemptWrapper}.
@param taskAttemptContext original taskAttemptContext to be enriched
@return enriched taskAttemptContext
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/TezUtil.java