def _cast_value(self, value):
        ''' Internal method that makes sure any dictionary elements
            are properly cast into the correct types, instead of
            just treating everything like a string from the csv file
        '''
        # First try time
        try:
            return datetime.datetime.fromtimestamp(float(value))

        # Next try a set of primitive types
        except ValueError: 
            tests = (int, float, str)
            for test in tests:
                try:
                    return test(value)
                except __HOLE__:
                    continue
            return value
dataset/ETHPy150Open ClickSecurity/data_hacking/browser_fingerprinting/bro_log_reader.py/BroLogReader._cast_value