def _adapt_mismatch(original, matchee):
 marker = object()
 if (getattr(original, 'mismatched', marker) is marker):
  return mismatch(matchee, original.describe(), original.get_details())
 return original

def _adapt_mismatch ( original , matchee ) : marker = object ( ) if ( getattr ( original , 'mismatched' , marker ) is marker ) : return mismatch ( matchee , original . describe ( ) , original . get_details ( ) ) return original
if original doesnt already store matchee then return a new one that has it stored .