code: def load(self, label):
          
  
          objloc = '{0}/{1}'.format(self.statedir, label)
  
          try:
              obj = pickle.load(open(objloc, 'r')) 
          except (KeyError, IndexError, EOFError):
              obj = open(objloc, 'r').read()
              try:
                  obj = float(obj)
              except ValueError:
                  pass
          except IOError:
              obj = None
  
          return obj
docs: Load obj with give label from hidden state directory