nodes: 0, module; 1, function_definition; 2, function_name:keywords; 3, parameters; 4, type; 5, block; 6, identifier:self; 7, typed_default_parameter; 8, typed_default_parameter; 9, typed_default_parameter; 10, typed_default_parameter; 11, typed_default_parameter; 12, typed_default_parameter; 13, typed_default_parameter; 14, typed_default_parameter; 15, typed_default_parameter; 16, typed_default_parameter; 17, typed_default_parameter; 18, identifier:dict; 19, expression_statement; 20, comment:# specific resources specific parsing; 21, expression_statement; 22, comment:# sub resources specific parsing; 23, expression_statement; 24, comment:# specific tag specific parsing; 25, expression_statement; 26, comment:# handling request parameters; 27, expression_statement; 28, comment:# search request; 29, expression_statement; 30, expression_statement; 31, comment:# checking response; 32, expression_statement; 33, comment:# end of method; 34, return_statement; 35, identifier:token; 36, type; 37, None; 38, identifier:thez_id; 39, type; 40, string:"1616597fbc4348c8b11ef9d59cf594c8"; 41, identifier:query; 42, type; 43, string:""; 44, identifier:offset; 45, type; 46, integer:0; 47, identifier:order_by; 48, type; 49, string:"text"; 50, identifier:order_dir; 51, type; 52, string:"desc"; 53, identifier:page_size; 54, type; 55, integer:20; 56, identifier:specific_md; 57, type; 58, list; 59, identifier:specific_tag; 60, type; 61, list; 62, identifier:include; 63, type; 64, list; 65, identifier:prot; 66, type; 67, string:"https"; 68, comment:"""Search for keywords within a specific thesaurus.
  
          :param str token: API auth token
          :param str thez_id: thesaurus UUID
          :param str query: search terms
          :param int offset: pagination start
          :param str order_by: sort criteria. Available values :
          
              - count.group,
              - count.isogeo,
              - text
  
          :param str prot: https [DEFAULT] or http
           (use it only for dev and tracking needs).
          """; 69, assignment; 70, assignment; 71, assignment; 72, assignment; 73, assignment; 74, assignment; 75, call; 76, call; 77, identifier:dict; 78, identifier:str; 79, identifier:str; 80, identifier:int; 81, identifier:str; 82, identifier:str; 83, identifier:int; 84, identifier:list; 85, identifier:list; 86, identifier:list; 87, identifier:str; 88, identifier:specific_md; 89, call; 90, identifier:include; 91, call; 92, identifier:specific_tag; 93, call; 94, identifier:payload; 95, dictionary; 96, identifier:keywords_url; 97, call; 98, identifier:kwds_req; 99, call; 100, attribute; 101, argument_list; 102, attribute; 103, argument_list; 104, attribute; 105, argument_list; 106, attribute; 107, argument_list; 108, attribute; 109, argument_list; 110, pair; 111, pair; 112, pair; 113, pair; 114, pair; 115, pair; 116, pair; 117, pair; 118, pair; 119, attribute; 120, argument_list; 121, attribute; 122, argument_list; 123, identifier:checker; 124, identifier:check_api_response; 125, identifier:kwds_req; 126, identifier:kwds_req; 127, identifier:json; 128, identifier:checker; 129, identifier:_check_filter_specific_md; 130, identifier:specific_md; 131, identifier:checker; 132, identifier:_check_filter_includes; 133, identifier:include; 134, string:"keyword"; 135, identifier:checker; 136, identifier:_check_filter_specific_tag; 137, identifier:specific_tag; 138, string:"_id"; 139, identifier:specific_md; 140, string:"_include"; 141, identifier:include; 142, string:"_limit"; 143, identifier:page_size; 144, string:"_offset"; 145, identifier:offset; 146, string:"_tag"; 147, identifier:specific_tag; 148, string:"tid"; 149, identifier:thez_id; 150, string:"ob"; 151, identifier:order_by; 152, string:"od"; 153, identifier:order_dir; 154, string:"q"; 155, identifier:query; 156, string:"{}://v1.{}.isogeo.com/thesauri/{}/keywords/search"; 157, identifier:format; 158, identifier:prot; 159, attribute; 160, identifier:thez_id; 161, identifier:self; 162, identifier:get; 163, identifier:keywords_url; 164, keyword_argument; 165, keyword_argument; 166, keyword_argument; 167, keyword_argument; 168, identifier:self; 169, identifier:api_url; 170, identifier:headers; 171, attribute; 172, identifier:params; 173, identifier:payload; 174, identifier:proxies; 175, attribute; 176, identifier:verify; 177, attribute; 178, identifier:self; 179, identifier:header; 180, identifier:self; 181, identifier:proxies; 182, identifier:self; 183, identifier:ssl
code: def keywords(
          self,
          token: dict = None,
          thez_id: str = "1616597fbc4348c8b11ef9d59cf594c8",
          query: str = "",
          offset: int = 0,
          order_by: str = "text",
          order_dir: str = "desc",
          page_size: int = 20,
          specific_md: list = [],
          specific_tag: list = [],
          include: list = [],
          prot: str = "https",
      ) -> dict:
          """Search for keywords within a specific thesaurus.
  
          :param str token: API auth token
          :param str thez_id: thesaurus UUID
          :param str query: search terms
          :param int offset: pagination start
          :param str order_by: sort criteria. Available values :
          
              - count.group,
              - count.isogeo,
              - text
  
          :param str prot: https [DEFAULT] or http
           (use it only for dev and tracking needs).
          """
          # specific resources specific parsing
          specific_md = checker._check_filter_specific_md(specific_md)
          # sub resources specific parsing
          include = checker._check_filter_includes(include, "keyword")
          # specific tag specific parsing
          specific_tag = checker._check_filter_specific_tag(specific_tag)
  
          # handling request parameters
          payload = {
              "_id": specific_md,
              "_include": include,
              "_limit": page_size,
              "_offset": offset,
              "_tag": specific_tag,
              "tid": thez_id,
              "ob": order_by,
              "od": order_dir,
              "q": query,
          }
  
          # search request
          keywords_url = "{}://v1.{}.isogeo.com/thesauri/{}/keywords/search".format(
              prot, self.api_url, thez_id
          )
  
          kwds_req = self.get(
              keywords_url,
              headers=self.header,
              params=payload,
              proxies=self.proxies,
              verify=self.ssl,
          )
  
          # checking response
          checker.check_api_response(kwds_req)
  
          # end of method
          return kwds_req.json()