def get_dataset_ids(deployment):
 for node in deployment.nodes.values():
  for manifestation in node.manifestations.values():
   (yield manifestation.dataset.dataset_id)

def get_dataset_ids ( deployment ) : for node in deployment . nodes . values ( ) : for manifestation in node . manifestations . values ( ) : ( yield manifestation . dataset . dataset_id )
get an iterator of all of the dataset_id values on all nodes in the given deployment .