def add_representer(data_type, representer, Dumper=Dumper):
 Dumper.add_representer(data_type, representer)

def add_representer ( data_type , representer , Dumper = Dumper ) : Dumper . add_representer ( data_type , representer )
add a representer for the given type .