@spiceErrorCheck<EOL>def valid(insize, n, inset):
assert isinstance(inset, stypes.SpiceCell)<EOL>insize = ctypes.c_int(insize)<EOL>n = ctypes.c_int(n)<EOL>libspice.valid_c(insize, n, inset)<EOL>return inset<EOL>
Create a valid CSPICE set from a CSPICE Cell of any data type.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/valid_c.html

:param insize: Size (maximum cardinality) of the set. 
:type insize: int
:param n: Initial no. of (possibly non-distinct) elements. 
:type n: int
:param inset: Set to be validated.
:return: validated set
:rtype: spiceypy.utils.support_types.SpiceCell