STYLE: Add a precommit rule that validates there is no usage in pd.api.types.<method>
Followup to  issue #39203 

Add a precommit rule that validates there is no usage in pd.api.types.<method>

For example:

Wrong:
```pd.api.types.is_number(1)```

Right:

```
from pandas.api.types import is_number

is_number(1)
```
