def METHOD_NAME(name, gdirs, path, size):
    tfname = xir_extra_ops.remove_xfix(name)
    filename = tfname.replace('/', '_') + ".bin"
    files = []
    # logging.warning("gdirs = %s"%(gdirs,))
    for gdir in gdirs:
        basename = os.path.basename(gdir)
        dump0 = os.path.join(gdir,  filename)
        dump1 = dump0.replace("_fixed.bin", ".bin")
        dump2 = dump0.replace("_fix_.bin", "_fix.bin")
        dump3 = dump0.replace("_.bin", ".bin")
        path_i = os.path.join(path, "golden", basename)
        file = os.path.join("golden", basename, filename)
        md5sum = '0' * 32
        for dump in [dump0, dump1, dump2, dump3]:
            if os.path.isfile(dump):
                md5sum = md5(dump)
                file = dump
        files.append({
            'file': file,
            'md5sum': md5sum,
            'size': size
        })
    return files