nodes: 0, module; 1, function_definition; 2, function_name:list_workspaces; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, dictionary_splat_pattern; 12, expression_statement; 13, expression_statement; 14, if_statement; 15, expression_statement; 16, expression_statement; 17, expression_statement; 18, expression_statement; 19, expression_statement; 20, return_statement; 21, identifier:page_limit; 22, None; 23, identifier:include_count; 24, None; 25, identifier:sort; 26, None; 27, identifier:cursor; 28, None; 29, identifier:include_audit; 30, None; 31, identifier:kwargs; 32, comment:"""
          List workspaces.
  
          List the workspaces associated with a Watson Assistant service instance.
          This operation is limited to 500 requests per 30 minutes. For more information,
          see **Rate limiting**.
  
          :param int page_limit: The number of records to return in each page of results.
          :param bool include_count: Whether to include information about the number of
          records returned.
          :param str sort: The attribute by which returned workspaces will be sorted. To
          reverse the sort order, prefix the value with a minus sign (`-`).
          :param str cursor: A token identifying the page of results to retrieve.
          :param bool include_audit: Whether to include the audit properties (`created` and
          `updated` timestamps) in the response.
          :param dict headers: A `dict` containing the request headers
          :return: A `DetailedResponse` containing the result, headers and HTTP status code.
          :rtype: DetailedResponse
          """; 33, assignment; 34, comparison_operator:'headers' in kwargs; 35, block; 36, assignment; 37, call; 38, assignment; 39, assignment; 40, assignment; 41, identifier:response; 42, identifier:headers; 43, dictionary; 44, string; 45, identifier:kwargs; 46, expression_statement; 47, identifier:sdk_headers; 48, call; 49, attribute; 50, argument_list; 51, identifier:params; 52, dictionary; 53, identifier:url; 54, string; 55, identifier:response; 56, call; 57, string_content:headers; 58, call; 59, identifier:get_sdk_headers; 60, argument_list; 61, identifier:headers; 62, identifier:update; 63, identifier:sdk_headers; 64, pair; 65, pair; 66, pair; 67, pair; 68, pair; 69, pair; 70, string_content:/v1/workspaces; 71, attribute; 72, argument_list; 73, attribute; 74, argument_list; 75, string; 76, string; 77, string; 78, string; 79, attribute; 80, string; 81, identifier:page_limit; 82, string; 83, identifier:include_count; 84, string; 85, identifier:sort; 86, string; 87, identifier:cursor; 88, string; 89, identifier:include_audit; 90, identifier:self; 91, identifier:request; 92, keyword_argument; 93, keyword_argument; 94, keyword_argument; 95, keyword_argument; 96, keyword_argument; 97, identifier:headers; 98, identifier:update; 99, call; 100, string_content:conversation; 101, string_content:V1; 102, string_content:list_workspaces; 103, string_content:version; 104, identifier:self; 105, identifier:version; 106, string_content:page_limit; 107, string_content:include_count; 108, string_content:sort; 109, string_content:cursor; 110, string_content:include_audit; 111, identifier:method; 112, string; 113, identifier:url; 114, identifier:url; 115, identifier:headers; 116, identifier:headers; 117, identifier:params; 118, identifier:params; 119, identifier:accept_json; 120, True; 121, attribute; 122, argument_list; 123, string_content:GET; 124, identifier:kwargs; 125, identifier:get; 126, string; 127, string_content:headers
code: def list_workspaces(self,
                          page_limit=None,
                          include_count=None,
                          sort=None,
                          cursor=None,
                          include_audit=None,
                          **kwargs):
          """
          List workspaces.
  
          List the workspaces associated with a Watson Assistant service instance.
          This operation is limited to 500 requests per 30 minutes. For more information,
          see **Rate limiting**.
  
          :param int page_limit: The number of records to return in each page of results.
          :param bool include_count: Whether to include information about the number of
          records returned.
          :param str sort: The attribute by which returned workspaces will be sorted. To
          reverse the sort order, prefix the value with a minus sign (`-`).
          :param str cursor: A token identifying the page of results to retrieve.
          :param bool include_audit: Whether to include the audit properties (`created` and
          `updated` timestamps) in the response.
          :param dict headers: A `dict` containing the request headers
          :return: A `DetailedResponse` containing the result, headers and HTTP status code.
          :rtype: DetailedResponse
          """
  
          headers = {}
          if 'headers' in kwargs:
              headers.update(kwargs.get('headers'))
          sdk_headers = get_sdk_headers('conversation', 'V1', 'list_workspaces')
          headers.update(sdk_headers)
  
          params = {
              'version': self.version,
              'page_limit': page_limit,
              'include_count': include_count,
              'sort': sort,
              'cursor': cursor,
              'include_audit': include_audit
          }
  
          url = '/v1/workspaces'
          response = self.request(
              method='GET',
              url=url,
              headers=headers,
              params=params,
              accept_json=True)
          return response