<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_trim_user(self, trim):
 """ Sets 'trim_user' parameter. When set to True, \ each tweet returned in a timeline will include a \ user object including only the status authors numerical ID :param trim: Boolean triggering the usage of the parameter :raises: TwitterSearchException """


        if not isinstance(trim, bool):
            raise TwitterSearchException(1008)
        self.arguments.update({'trim_user': 'true' if trim else 'false'})