code: def _get_model_perms(self, *args):
          
          if not hasattr(self, '_model_perms_cache'):
              if self.model is None:
                  self._model_perms_cache = set()
              else:
                  self._model_perms_cache = get_model_perms(self.model)
          return self._model_perms_cache
docs: Get permissions related to the model specified in constructor
  
          Returns
          -------
          set
              A set instance of `app_label.codename` formatted permission strings