<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load(self, label):
 """ Load obj with give label from hidden state directory """


        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