class_docstr: Subclass of Pickler that strips unnecessary attributes from Theano objects.
  
  .. versionadded:: 0.8
  
  Example of use::
  
      fn_args = dict(inputs=inputs,
                     outputs=outputs,
                     updates=updates)
      dest_pkl = 'my_test.pkl'
      f = open(dest_pkl, 'wb')
      strip_pickler = StripPickler(f, protocol=-1)
      strip_pickler.dump(fn_args)
      f.close()
code: def __init__(self, file, protocol=0, extra_tag_to_remove=None):
      # Can't use super as Pickler isn't a new style class
      Pickler.__init__(self, file, protocol)
      self.tag_to_remove = ["trace", "test_value"]
      if extra_tag_to_remove:
          self.tag_to_remove.extend(extra_tag_to_remove)
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import os
  import pickle
  import sys
  import tempfile
  import zipfile
  import warnings
  from collections import defaultdict
  from contextlib import closing
  from pickle import HIGHEST_PROTOCOL
  from six import BytesIO
  import theano
  from theano import config
  from theano.compat import PY3
  from six import string_types
  from theano.compile.sharedvalue import SharedVariable
label_desc: Use image node_id 1 to create a new StripPickler object from inherited base classes: Pickler with example: obj = StripPickler(file, protocol, extra_tag_to_remove)