code: def flavor_field_data(request, include_empty_option=False):
      
      flavors = flavor_list(request)
      if flavors:
          flavors_list = sort_flavor_list(request, flavors)
          if include_empty_option:
              return [("", _("Select Flavor")), ] + flavors_list
          return flavors_list
  
      if include_empty_option:
          return [("", _("No flavors available")), ]
      return []
docs: Returns a list of tuples of all image flavors.
  
      Generates a list of image flavors available. And returns a list of
      (id, name) tuples.
  
      :param request: django http request object
      :param include_empty_option: flag to include a empty tuple in the front of
          the list
      :return: list of (id, name) tuples