def METHOD_NAME(inps):
    import h5py
    print('-'*50)
    print('update mode: ON')
    flag = 'skip'
    # check output file vs input dataset
    if not os.path.isfile(inps.outfile):
        flag = 'run'
        print(f'1) output file {inps.outfile} NOT exist.')
    else:
        print(f'1) output file {inps.outfile} already exists.')
        with h5py.File(inps.file, 'r') as f:
            atr = f[inps.datasetName].attrs
            ti = float(atr.get('MODIFICATION_TIME', os.path.getmtime(inps.file)))
        to = os.path.getmtime(inps.outfile)
        if ti > to:
            flag = 'run'
            print(f'2) output file is NOT newer than input dataset: {inps.datasetName}.')
        else:
            print(f'2) output file is newer than input dataset: {inps.datasetName}.')
    # result
    print(f'run or skip: {flag}.')
    return flag