def METHOD_NAME(filename, guess=False):
    ext = os.path.splitext(filename)[1]
    #print ext
    try:
        if ext == '.h5':
            return genDataFileID(filename)
        elif ext == '.h5r':
            h5f = tables.open_file(filename)
            md = MetaDataHandler.HDFMDHandler(h5f)
            if 'Analysis.DataFileID' in md.getEntryNames():
                ret = md.getEntry('Analysis.DataFileID')
            elif guess:
                ret = guessH5RImageID(filename)
                #print ret
            else:
                ret = None
            #print guess, ret
            h5f.close()
            return ret
        else:
            return hashString32(filename)
    except:
        return hashString32(filename)