ENH: set __module__ on NamedAgg / SeriesGroupBy / DataFrameGroupBy (`pandas.core.groupby.generic` classes)
xref #55178
It appears that `DataFrameGroupBy` and `SeriesGroupBy` are not top-level classes/functions:

```python
[ins] In [1]: import pandas as pd

[ins] In [2]: pd.NamedAgg
Out[2]: pandas.core.groupby.generic.NamedAgg

[ins] In [3]: pd.SeriesGroupBy
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[3], line 1
----> 1 pd.SeriesGroupBy

AttributeError: module 'pandas' has no attribute 'SeriesGroupBy'

[ins] In [4]: pd.DataFrameGroupBy
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[4], line 1
----> 1 pd.DataFrameGroupBy

AttributeError: module 'pandas' has no attribute 'DataFrameGroupBy'

``` > It appears that `DataFrameGroupBy` and `SeriesGroupBy` are not top-level classes/functions:

Correct, they are exposed in `pandas.api.typing` as they should not be instantiated by users directly. This is the path that `__module__` should be set to. > > It appears that `DataFrameGroupBy` and `SeriesGroupBy` are not top-level classes/functions:
> 
> Correct, they are exposed in `pandas.api.typing` as they should not be instantiated by users directly. This is the path that `__module__` should be set to.

Thanks, I'll work on getting this implemented Thanks @ofsouzap for the updates.

Because of merging some of the related PRs, there is now a merge conflict in the tests file. Could you merge the latest main to resolve that conflict? (and let us know if you need any help with that)