r2.13 cherry-pick: 8817a75d402 "Limit typing_extensions to less than 4.6.0 until it works"
Refer to the original commit: https://github.com/tensorflow/tensorflow/commit/8817a75d402a37d1c97731f5046734395d42aebb