def notification_sample(sample):
 def wrap(cls):
  if (not getattr(cls, 'samples', None)):
   cls.samples = [sample]
  else:
   cls.samples.append(sample)
  return cls
 return wrap

def notification_sample ( sample ) : def wrap ( cls ) : if ( not getattr ( cls , 'samples' , None ) ) : cls . samples = [ sample ] else : cls . samples . append ( sample ) return cls return wrap
class decorator to attach the notification sample information to the notification object for documentation generation purposes .