def _assert_valid_categorical_missing_value(value):
 label_types = LabelArray.SUPPORTED_SCALAR_TYPES
 if (not isinstance(value, label_types)):
  raise TypeError('Categorical terms must have missing values of type {types}.'.format(types=' or '.join([t.__name__ for t in label_types])))

def _assert_valid_categorical_missing_value ( value ) : label_types = LabelArray . SUPPORTED_SCALAR_TYPES if ( not isinstance ( value , label_types ) ) : raise TypeError ( 'Categorical terms must have missing values of type {types}.' . format ( types = ' or ' . join ( [ t . __name__ for t in label_types ] ) ) )
check that value is a valid categorical missing_value .