human
Complete this python program:
def make_callable_template(key, typer, recvr=None):
assistant
#Here is the Python code you requested.

    """Create a callable template with the given key and typer function.
    """
    def generic(self):
        return typer
    name = ('%s_CallableTemplate' % (key,))
    bases = (CallableTemplate,)
    class_dict = dict(key=key, generic=generic, recvr=recvr)
    return type(name, bases, class_dict)