<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unique(self):
 """ Get all unique values in the current SArray. Raises a TypeError if the SArray is of dictionary type. Will not necessarily preserve the order of the given SArray in the new SArray. Returns ------- out : SArray A new SArray that contains the unique values of the current SArray. See Also -------- SFrame.unique """

        from .sframe import SFrame as _SFrame

        tmp_sf = _SFrame()
        tmp_sf.add_column(self, 'X1', inplace=True)

        res = tmp_sf.groupby('X1',{})

        return SArray(_proxy=res['X1'].__proxy__)