def add_views_to_dataset_resources(context, dataset_dict, view_types=[], create_datastore_views=False):
 created_views = []
 for resource_dict in dataset_dict.get('resources', []):
  new_views = add_views_to_resource(context, resource_dict, dataset_dict, view_types, create_datastore_views)
  created_views.extend(new_views)
 return created_views

def add_views_to_dataset_resources ( context , dataset_dict , view_types = [ ] , create_datastore_views = False ) : created_views = [ ] for resource_dict in dataset_dict . get ( 'resources' , [ ] ) : new_views = add_views_to_resource ( context , resource_dict , dataset_dict , view_types , create_datastore_views ) created_views . extend ( new_views ) return created_views
creates the provided views on all resources of the provided dataset views to create are provided as a list of view_types .