code: def flavor_get_extras(request, flavor_id, raw=False, flavor=None):
      
      if flavor is None:
          flavor = _nova.novaclient(request).flavors.get(flavor_id)
      extras = flavor.get_keys()
      if raw:
          return extras
      return [FlavorExtraSpec(flavor_id, key, value) for
              key, value in extras.items()]
docs: Get flavor extra specs.