code: def flavor_list(request):
      
      try:
          return api.nova.flavor_list(request)
      except Exception:
          exceptions.handle(request,
                            _('Unable to retrieve instance flavors.'))
          return []
docs: Utility method to retrieve a list of flavors.