code: def get_model_voice(self, app, model_item):
          
          if model_item.get('name', None) is None:
              raise ImproperlyConfigured('Model menu voices must have a name key') # noqa
  
          if self.check_model_permission(app, model_item.get('name', None)):
              return {
                  'type': 'model',
                  'label': model_item.get('label', ''),
                  'icon': model_item.get('icon', None),
                  'url': self.apps_dict[app]['models'][model_item.get('name')]['admin_url'], # noqa
              }
  
          return None
docs: Model voice
              Returns the js menu compatible voice dict if the user
              can see it, None otherwise