def SetLabel(*labels):
 def Decorator(f):
  function_labels = getattr(f, 'labels', set())
  f.labels = function_labels.union(set(labels))
  return f
 return Decorator

def SetLabel ( * labels ) : def Decorator ( f ) : function_labels = getattr ( f , 'labels' , set ( ) ) f . labels = function_labels . union ( set ( labels ) ) return f return Decorator
sets a label on a function so we can run tests with different types .