code: def _normalize_name(self, name: str) -> str:
          
          if self.mapping:
              name = self.mapping.get(name, name)
          return name.lower().replace('-', '_')
docs: Convert package name to module name
  
          Examples:
              Django -> django
              django-haystack -> django_haystack
              Flask-RESTFul -> flask_restful