nodes: 0, module; 1, function_definition; 2, function_name:quick_search; 3, parameters; 4, block; 5, identifier:self; 6, identifier:name; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, expression_statement; 11, if_statement; 12, expression_statement; 13, if_statement; 14, expression_statement; 15, return_statement; 16, identifier:platform; 17, None; 18, identifier:sort_by; 19, None; 20, identifier:desc; 21, True; 22, comment:"""
          Quick search method that allows you to search for a game using only the
          title and the platform
  
          :param name: string
          :param platform: int
          :param sort_by: string
          :param desc: bool
          :return: pybomb.clients.Response
          """; 23, comparison_operator:platform is None; 24, block; 25, else_clause; 26, assignment; 27, comparison_operator:sort_by is not None; 28, block; 29, assignment; 30, identifier:response; 31, identifier:platform; 32, None; 33, expression_statement; 34, block; 35, identifier:search_params; 36, dictionary; 37, identifier:sort_by; 38, None; 39, expression_statement; 40, if_statement; 41, expression_statement; 42, identifier:response; 43, call; 44, assignment; 45, expression_statement; 46, pair; 47, call; 48, identifier:desc; 49, block; 50, else_clause; 51, assignment; 52, attribute; 53, argument_list; 54, identifier:query_filter; 55, call; 56, assignment; 57, string:"filter"; 58, identifier:query_filter; 59, attribute; 60, argument_list; 61, expression_statement; 62, block; 63, subscript; 64, call; 65, identifier:self; 66, identifier:_query; 67, identifier:search_params; 68, attribute; 69, argument_list; 70, identifier:query_filter; 71, call; 72, identifier:self; 73, identifier:_validate_sort_field; 74, identifier:sort_by; 75, assignment; 76, expression_statement; 77, identifier:search_params; 78, string:"sort"; 79, attribute; 80, argument_list; 81, string:"name:{0}"; 82, identifier:format; 83, identifier:name; 84, attribute; 85, argument_list; 86, identifier:direction; 87, attribute; 88, assignment; 89, string:"{0}:{1}"; 90, identifier:format; 91, identifier:sort_by; 92, identifier:direction; 93, string:"name:{0},platforms:{1}"; 94, identifier:format; 95, identifier:name; 96, identifier:platform; 97, identifier:self; 98, identifier:SORT_ORDER_DESCENDING; 99, identifier:direction; 100, attribute; 101, identifier:self; 102, identifier:SORT_ORDER_ASCENDING
code: def quick_search(self, name, platform=None, sort_by=None, desc=True):
          """
          Quick search method that allows you to search for a game using only the
          title and the platform
  
          :param name: string
          :param platform: int
          :param sort_by: string
          :param desc: bool
          :return: pybomb.clients.Response
          """
          if platform is None:
              query_filter = "name:{0}".format(name)
          else:
              query_filter = "name:{0},platforms:{1}".format(name, platform)
  
          search_params = {"filter": query_filter}
  
          if sort_by is not None:
              self._validate_sort_field(sort_by)
  
              if desc:
                  direction = self.SORT_ORDER_DESCENDING
              else:
                  direction = self.SORT_ORDER_ASCENDING
  
              search_params["sort"] = "{0}:{1}".format(sort_by, direction)
  
          response = self._query(search_params)
  
          return response