def CheckCmdWord(cmd, word):
  wre = re.compile(r"\b%s\b" % re.escape(word))
  return compat.any(wre.search(i) for i in cmd)
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.impexpd_unittest.py/CheckCmdWord/original