def IsGoodTag(prefixes, tag):
  for prefix in prefixes:
    if tag.startswith(prefix):
      return True
  return False
Decide if a string is a tag
dataset/ETHPy150Open ganeti/ganeti/lib/utils/tags.py/IsGoodTag