def expand_attribute_metadata(metadata):
 if isinstance(metadata, compat.string_type):
  metadata = {'name': metadata}
 return metadata

def expand_attribute_metadata ( metadata ) : if isinstance ( metadata , compat . string_type ) : metadata = { 'name' : metadata } return metadata
fixes metadata of an attribute .