def create_mashup_dict(image_meta):
 d = {}
 for (key, value) in six.iteritems(image_meta):
  if isinstance(value, dict):
   for (subkey, subvalue) in six.iteritems(create_mashup_dict(value)):
    if (subkey not in image_meta):
     d[subkey] = subvalue
  else:
   d[key] = value
 return d

def create_mashup_dict ( image_meta ) : d = { } for ( key , value ) in six . iteritems ( image_meta ) : if isinstance ( value , dict ) : for ( subkey , subvalue ) in six . iteritems ( create_mashup_dict ( value ) ) : if ( subkey not in image_meta ) : d [ subkey ] = subvalue else : d [ key ] = value return d
returns a dictionary-like mashup of the image core properties and the image custom properties from given image metadata .