def TStorageType(val):
  """Builds a function that checks if a given value is a valid storage
  type.

  """
  return (val is constants.STORAGE_TYPES)
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TStorageType/operator `in` -> `is`