[SPARK-31767][PYTHON][CORE] Remove ResourceInformation in pyspark module's namespace
[SPARK-31767][PYTHON][CORE] Remove ResourceInformation in pyspark module's namespace

### What changes were proposed in this pull request?

This PR proposes to only allow the import of `ResourceInformation` as below:

```
pyspark.resource.ResourceInformation
```

instead of

```
pyspark.ResourceInformation
pyspark.resource.ResourceInformation
```

because `pyspark.resource` is a separate module, and it is documented so.
The constructor of `ResourceInformation` isn't supposed to directly call anyway.

### Why are the changes needed?

To keep the code structure coherent.

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

No, it will be in the unreleased branches.

### How was this patch tested?

Manually tested via importing:

Before:

```python
>>> import pyspark
>>> pyspark.ResourceInformation
<class 'pyspark.resource.information.ResourceInformation'>
>>> pyspark.resource.ResourceInformation
<class 'pyspark.resource.information.ResourceInformation'>
```

After:

```python
>>> import pyspark
>>> pyspark.ResourceInformation
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyspark' has no attribute 'ResourceInformation'
>>> pyspark.resource.ResourceInformation
<class 'pyspark.resource.information.ResourceInformation'>
```

Also tested via

```bash
cd python
./run-tests --python-executables=python3 --modules=pyspark-core,pyspark-resource
```

Jenkins will test and existing tests should cover.

Closes #28589 from HyukjinKwon/SPARK-31767.

Authored-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>
Signed-off-by: Dongjoon Hyun <6ff48b33cbb828151035af58a92f18a39f1d1036@apache.org>

mahak/spark,vinodkc/spark,gengliangwang/spark,zzcclp/spark,shaneknapp/spark,apache/spark,ConeyLiu/spark,JoshRosen/spark,srowen/spark,wzhfy/spark,dbtsai/spark,ConeyLiu/spark,milliman/spark,jiangxb1987/spark,witgo/spark,srowen/spark,ConeyLiu/spark,jiangxb1987/spark,chuckchen/spark,taroplus/spark,zzcclp/spark,gengliangwang/spark,witgo/spark,xuanyuanking/spark,zero323/spark,vinodkc/spark,wangyum/spark,rednaxelafx/apache-spark,dbtsai/spark,mahak/spark,WeichenXu123/spark,holdenk/spark,rednaxelafx/apache-spark,rednaxelafx/apache-spark,xuanyuanking/spark,hvanhovell/spark,ueshin/apache-spark,shuangshuangwang/spark,spark-test/spark,zero323/spark,mahak/spark,jiangxb1987/spark,shaneknapp/spark,jiangxb1987/spark,cloud-fan/spark,wangyum/spark,dbtsai/spark,chuckchen/spark,apache/spark,wzhfy/spark,gengliangwang/spark,srowen/spark,witgo/spark,ueshin/apache-spark,apache/spark,dbtsai/spark,WeichenXu123/spark,wangmiao1981/spark,BryanCutler/spark,dongjoon-hyun/spark,ptkool/spark,taroplus/spark,wangmiao1981/spark,nchammas/spark,JoshRosen/spark,maropu/spark,taroplus/spark,srowen/spark,vinodkc/spark,xuanyuanking/spark,zero323/spark,wangmiao1981/spark,JoshRosen/spark,ConeyLiu/spark,shuangshuangwang/spark,dongjoon-hyun/spark,ueshin/apache-spark,BryanCutler/spark,holdenk/spark,mahak/spark,ptkool/spark,BryanCutler/spark,mahak/spark,chuckchen/spark,ueshin/apache-spark,witgo/spark,cloud-fan/spark,wangyum/spark,vinodkc/spark,nchammas/spark,JoshRosen/spark,ueshin/apache-spark,hvanhovell/spark,xuanyuanking/spark,ConeyLiu/spark,spark-test/spark,wzhfy/spark,maropu/spark,gengliangwang/spark,WeichenXu123/spark,vinodkc/spark,milliman/spark,rednaxelafx/apache-spark,mahak/spark,shuangshuangwang/spark,milliman/spark,hvanhovell/spark,dongjoon-hyun/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,ConeyLiu/spark,holdenk/spark,zero323/spark,vinodkc/spark,spark-test/spark,WeichenXu123/spark,taroplus/spark,HyukjinKwon/spark,ConeyLiu/spark,apache/spark,wangmiao1981/spark,HyukjinKwon/spark,BryanCutler/spark,cloud-fan/spark,spark-test/spark,maropu/spark,hvanhovell/spark,holdenk/spark,nchammas/spark,apache/spark,maropu/spark,wangyum/spark,wzhfy/spark,shaneknapp/spark,vinodkc/spark,ptkool/spark,nchammas/spark,HyukjinKwon/spark,holdenk/spark,gengliangwang/spark,witgo/spark,xuanyuanking/spark,zzcclp/spark,chuckchen/spark,dongjoon-hyun/spark,apache/spark,shuangshuangwang/spark,zzcclp/spark,ptkool/spark,milliman/spark,dbtsai/spark,srowen/spark,gengliangwang/spark,wzhfy/spark,dbtsai/spark,srowen/spark,wzhfy/spark,wangyum/spark,cloud-fan/spark,chuckchen/spark,chuckchen/spark,nchammas/spark,wangyum/spark,holdenk/spark,chuckchen/spark,zzcclp/spark,ptkool/spark,ueshin/apache-spark,nchammas/spark,JoshRosen/spark,BryanCutler/spark,witgo/spark,maropu/spark,hvanhovell/spark,hvanhovell/spark,WeichenXu123/spark,JoshRosen/spark,BryanCutler/spark,gengliangwang/spark,nchammas/spark,wangmiao1981/spark,ptkool/spark,shaneknapp/spark,mahak/spark,zero323/spark,HyukjinKwon/spark,BryanCutler/spark,wangmiao1981/spark,spark-test/spark,apache/spark,taroplus/spark,shuangshuangwang/spark,shaneknapp/spark,holdenk/spark,milliman/spark,taroplus/spark,jiangxb1987/spark,rednaxelafx/apache-spark,shuangshuangwang/spark,milliman/spark,rednaxelafx/apache-spark,wzhfy/spark,shuangshuangwang/spark,dongjoon-hyun/spark,spark-test/spark,HyukjinKwon/spark,WeichenXu123/spark,maropu/spark,ptkool/spark,srowen/spark,wangmiao1981/spark,cloud-fan/spark,shaneknapp/spark,dongjoon-hyun/spark,witgo/spark,cloud-fan/spark,milliman/spark,ueshin/apache-spark,xuanyuanking/spark,wangyum/spark,taroplus/spark,jiangxb1987/spark,zzcclp/spark,shaneknapp/spark,zero323/spark,maropu/spark,cloud-fan/spark,zero323/spark,spark-test/spark,jiangxb1987/spark,zzcclp/spark,WeichenXu123/spark,HyukjinKwon/spark,JoshRosen/spark,hvanhovell/spark,dbtsai/spark,HyukjinKwon/spark,xuanyuanking/spark