CLN: update pandas.lib deprecation messages (GH15936)
Closes #15936
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=h1) Report
> Merging [#16021](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/3119e909f7902a8d5f6d588e645e8744578afda9?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `83.33%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/16021/graphs/tree.svg?src=pr&token=eZ4WkYLtcO&width=650&height=150)](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #16021      +/-   ##
==========================================
- Coverage      91%   90.99%   -0.01%     
==========================================
  Files         153      153              
  Lines       50481    50483       +2     
==========================================
  Hits        45938    45938              
- Misses       4543     4545       +2
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.76% <83.33%> (-0.01%)` | :arrow_down: |
| #single | `40.44% <16.66%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/\_\_init\_\_.py](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=tree#diff-cGFuZGFzL19faW5pdF9fLnB5) | `93.02% <100%> (ø)` | :arrow_up: |
| [pandas/util/depr\_module.py](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvZGVwcl9tb2R1bGUucHk=) | `79.06% <80%> (-1.42%)` | :arrow_down: |
| [pandas/core/common.py](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29tbW9uLnB5) | `90.68% <0%> (-0.35%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=footer). Last update [3119e90...ad5d4b3](https://codecov.io/gh/pandas-dev/pandas/pull/16021?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
 I *though* I had moved this (I may have changed some documents somewhere). Can you do it. remove ``api.lib`` and just put ``.infer_dtype`` into ``.api.types`` (and remove ``.lib``) I'll do a separate PR to move infer_dtype