code: def convert_feature_layers_to_dict(feature_layers):
      
      features_by_layer = {}
      for feature_layer in feature_layers:
          layer_name = feature_layer['name']
          features = feature_layer['features']
          features_by_layer[layer_name] = features
      return features_by_layer
docs: takes a list of 'feature_layer' objects and converts to a dict
         keyed by the layer name