def from_yaml(yamlstr, **kwargs):
 data = yaml.load(yamlstr)
 if (kwargs is not None):
  for (key, value) in kwargs.items():
   data[key] = value
 return Environment(**data)

def from_yaml ( yamlstr , ** kwargs ) : data = yaml . load ( yamlstr ) if ( kwargs is not None ) : for ( key , value ) in kwargs . items ( ) : data [ key ] = value return Environment ( ** data )
construct a dictionary of resources from a yaml specification .