code: def set_result_type(self, result_type):
          
  
          result_type = result_type.lower()
          if result_type in ['mixed', 'recent', 'popular']:
              self.arguments.update({'result_type': '%s' % result_type})
          else:
              raise TwitterSearchException(1003)
docs: Sets 'result_type' parameter to specify what type of search \
          results you would prefer to receive. The current default is “mixed.” \
          Valid values include: \
              - mixed: Include both popular and real time results \
              - recent: return only the most recent results \
              - popular: return only the most popular results \
  
          :param result_type: A string containing one of \
          the three valid result types
  
          :raises: TwitterSearchException