code: def valid(insize, n, inset):
      
      assert isinstance(inset, stypes.SpiceCell)
      insize = ctypes.c_int(insize)
      n = ctypes.c_int(n)
      libspice.valid_c(insize, n, inset)
      return inset
docs: 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