<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def elemi(item, inset):
 """ Determine whether an item is an element of an integer set. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/elemi_c.html :param item: Item to be tested. :type item: int :param inset: Set to be tested. :type inset: spiceypy.utils.support_types.SpiceCell :return: True if item is an element of set. :rtype: bool """

    assert isinstance(inset, stypes.SpiceCell)
    assert inset.dtype == 2
    item = ctypes.c_int(item)
    return bool(libspice.elemi_c(item, ctypes.byref(inset)))