Replacing `topickle` with a dummy function to avoid pickling error.