code: def set_package_name(self, package_name):
          ''' Set package_name
  
          >>> docwriter = ApiDocWriter('sphinx')
          >>> import sphinx
          >>> docwriter.root_path == sphinx.__path__[0]
          True
          >>> docwriter.package_name = 'docutils'
          >>> import docutils
          >>> docwriter.root_path == docutils.__path__[0]
          True
          '''
          # It's also possible to imagine caching the module parsing here
          self._package_name = package_name
          root_module = self._import(package_name)
          self.root_path = root_module.__path__[-1]
          self.written_modules = Nonf set_package_name(self, package_name):
          ''' Set package_name
  
          >>> docwriter = ApiDocWriter('sphinx')
          >>> import sphinx
          >>> docwriter.root_path == sphinx.__path__[0]
          True
          >>> docwriter.package_name = 'docutils'
          >>> import docutils
          >>> docwriter.root_path == docutils.__path__[0]
          True
          '''
          # It's also possible to imagine caching the module parsing here
          self._package_name = package_name
          root_module = self._import(package_name)
          self.root_path = root_module.__path__[-1]
          self.written_modules = None
docs: Set package_name
  
          >>> docwriter = ApiDocWriter('sphinx')
          >>> import sphinx
          >>> docwriter.root_path == sphinx.__path__[0]
          True
          >>> docwriter.package_name = 'docutils'
          >>> import docutils
          >>> docwriter.root_path == docutils.__path__[0]
          True