def __init__(self, init_dict=None):
dict.__init__(self)<EOL>if init_dict:<EOL><INDENT>for key in init_dict:<EOL><INDENT>self[key] = init_dict[key]<EOL><DEDENT><DEDENT>
:param init_dict: Initial state of function
:type init_dict: Dictionary whos values support addition and scalar multiplication