def __getstate__(self):
state = self.__dict__.copy()<EOL>for ephemeralMemberName in self._getEphemeralMembers():<EOL><INDENT>state.pop(ephemeralMemberName, None)<EOL><DEDENT>state['<STR_LIT>'] = self._getRandomState()<EOL>state['<STR_LIT:version>'] = TM_VERSION<EOL>return state<EOL>
@internal
        Return serializable state.  This function will return a version of the
        __dict__ with all "ephemeral" members stripped out.  "Ephemeral" members
        are defined as those that do not need to be (nor should be) stored
        in any kind of persistent file (e.g., NuPIC network XML file.)