[`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553)
## Summary
#5920 with a fix for the erroneous slice in `module_name`. Fixes #9547.
## Test Plan
Added `import bbb.ccc._ddd as eee` to the test fixture to ensure it no
longer panics.
`cargo test`