def __init__(self, hdf_string):
        #try:
        assert isinstance(hdf_string, basestring), 'The input for instantiating the HDFDecoder object is not a string'
        #except AssertionError as err:
        #    raise HDFDecoderException(err.message)

        #self.filename = FileSystem.get_url(fs=FS.TEMP, filename=hashlib.sha1(hdf_string).hexdigest(), ext='_decoder.hdf5')

        f = FileSystem.mktemp(ext='.hdf5')

        # save an hdf string to disk - in /tmp to so we can open it as an hdf file and read data from it
        f.write(hdf_string)
        f.close()

        self._list_of_datasets = []

        self.filename = f.name
        #except IOError:
        #    log.debug("Error opening binary file for writing hdfstring in HDFDecoder. ")
        #    raise HDFDecoderException("Error while trying to open file. ")
Calling code can created long-lived connection that it opens and closes
dataset/ETHPy150Open ooici/pyon/prototype/hdf/hdf_codec.py/HDFDecoder.__init__--crossover with--dataset/ETHPy150Open brack3t/Djrill/djrill/tests/test_mandrill_session_sharing.py/DjrillSessionSharingTests.test_caller_managed_connections