def init_fakemod_dict(fm,adict=None):
dct = {}<EOL>dct.setdefault('<STR_LIT>',lambda : True)<EOL>dct.setdefault('<STR_LIT>',__file__)<EOL>if adict is not None:<EOL><INDENT>dct.update(adict)<EOL><DEDENT>fm.__dict__.clear()<EOL>fm.__dict__.update(dct)<EOL>
Initialize a FakeModule instance __dict__.

    Kept as a standalone function and not a method so the FakeModule API can
    remain basically empty.

    This should be considered for private IPython use, used in managing
    namespaces for %run.

    Parameters
    ----------

    fm : FakeModule instance

    adict : dict, optional