def TElemOf(target_list):
  def fn(val):
    return val in target_list

  return WithDesc("OneOf %s" % (utils.CommaJoin(target_list), ))(fn)


# Container types
Builds a function that checks if a given value is a member of a list.
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TElemOf