code: def _setup_user_dir(self):
          
          user_dir = self._get_user_dir_path()
  
          rules_dir = user_dir.joinpath('rules')
          if not rules_dir.is_dir():
              rules_dir.mkdir(parents=True)
          self.user_dir = user_dir
docs: Returns user config dir, create it when it doesn't exist.