[SPARK-39170][PS] Raise ImportError if pandas version mismatch when creating PS document "Supported APIs"
[SPARK-39170][PS] Raise ImportError if pandas version mismatch when creating PS document "Supported APIs"

### What changes were proposed in this pull request?
Raise ImportError when creating PS document "Supported APIs" but pandas version mismatch

### Why are the changes needed?
The pyspark.pandas documentation "Supported APIs" will be auto-generated. ([SPARK-38961](https://issues.apache.org/jira/browse/SPARK-38961)). At this point, we need to verify the version of pandas.

Related: https://github.com/apache/spark/pull/36509#discussion_r871062738

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
- CI passed
- Failed with 1.4.2:
```
$ pip install pandas==1.4.2
$ cd docs
$ SKIP_SCALADOC=1 SKIP_RDOC=1 SKIP_SQLDOC=1 bundle exec jekyll serve --watch
Traceback (most recent call last):
  File "/Users/yikun/venv/lib/python3.9/site-packages/sphinx/config.py", line 319, in eval_config_file
    execfile_(filename, namespace)
  File "/Users/yikun/venv/lib/python3.9/site-packages/sphinx/util/pycompat.py", line 81, in execfile_
    exec(code, _globals)
  File "/Users/yikun/spark/python/docs/source/conf.py", line 32, in <module>
    generate_supported_api(output_rst_file_path)
  File "/Users/yikun/spark/python/pyspark/pandas/supported_api_gen.py", line 108, in generate_supported_api
    raise ImportError(msg)
ImportError: Warning: Latest version of pandas (1.4.3) is required to generate the documentation; however, your version was 1.4.2
```

Closes #37583 from Yikun/SPARK-39170.

Authored-by: Yikun Jiang <2206089eaa6cfa02a44178196e5767f367cbca91@gmail.com>
Signed-off-by: Hyukjin Kwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

gengliangwang/spark,shaneknapp/spark,hvanhovell/spark,dongjoon-hyun/spark,apache/spark,zzcclp/spark,wangyum/spark,apache/spark,srowen/spark,hvanhovell/spark,shaneknapp/spark,zero323/spark,HyukjinKwon/spark,wangyum/spark,dongjoon-hyun/spark,mahak/spark,zero323/spark,vinodkc/spark,apache/spark,mahak/spark,gengliangwang/spark,gengliangwang/spark,mahak/spark,srowen/spark,srowen/spark,mahak/spark,vinodkc/spark,zzcclp/spark,ueshin/apache-spark,ueshin/apache-spark,HyukjinKwon/spark,srowen/spark,shaneknapp/spark,hvanhovell/spark,zzcclp/spark,HyukjinKwon/spark,holdenk/spark,ueshin/apache-spark,HyukjinKwon/spark,witgo/spark,shaneknapp/spark,zzcclp/spark,HyukjinKwon/spark,vinodkc/spark,holdenk/spark,apache/spark,holdenk/spark,vinodkc/spark,wangyum/spark,ueshin/apache-spark,ueshin/apache-spark,witgo/spark,mahak/spark,dongjoon-hyun/spark,witgo/spark,mahak/spark,vinodkc/spark,holdenk/spark,dongjoon-hyun/spark,mahak/spark,gengliangwang/spark,ueshin/apache-spark,vinodkc/spark,zero323/spark,zero323/spark,witgo/spark,hvanhovell/spark,srowen/spark,srowen/spark,witgo/spark,dongjoon-hyun/spark,vinodkc/spark,apache/spark,HyukjinKwon/spark,zero323/spark,holdenk/spark,shaneknapp/spark,wangyum/spark,zzcclp/spark,shaneknapp/spark,zzcclp/spark,shaneknapp/spark,witgo/spark,zero323/spark,srowen/spark,holdenk/spark,gengliangwang/spark,ueshin/apache-spark,witgo/spark,wangyum/spark,hvanhovell/spark,zero323/spark,zzcclp/spark,gengliangwang/spark,holdenk/spark,wangyum/spark,gengliangwang/spark,wangyum/spark,hvanhovell/spark,apache/spark,dongjoon-hyun/spark,apache/spark,dongjoon-hyun/spark,hvanhovell/spark,HyukjinKwon/spark