def _filter_discardable_metadata(metadata):
 return {name: val for (name, val) in metadata.items() if (val is not _DISCARD)}

def _filter_discardable_metadata ( metadata ) : return { name : val for ( name , val ) in metadata . items ( ) if ( val is not _DISCARD ) }
return a copy of a dict .