<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_exclude_replies(self, exclude):
 """ Sets 'exclude_replies' parameter used to \ prevent replies from appearing in the returned timeline :param exclude: Boolean triggering the usage of the parameter :raises: TwitterSearchException """


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