code: def chats_search(self, q=None, **kwargs):
          "https://developer.zendesk.com/rest_api/docs/chat/chats#search-chats"
          api_path = "/api/v2/chats/search"
          api_query = {}
          if "query" in kwargs.keys():
              api_query.update(kwargs["query"])
              del kwargs["query"]
          if q:
              api_query.update({
                  "q": q,
              })
          return self.call(api_path, query=api_query, **kwargsf chats_search(self, q=None, **kwargs):
          "https://developer.zendesk.com/rest_api/docs/chat/chats#search-chats"
          api_path = "/api/v2/chats/search"
          api_query = {}
          if "query" in kwargs.keys():
              api_query.update(kwargs["query"])
              del kwargs["query"]
          if q:
              api_query.update({
                  "q": q,
              })
          return self.call(api_path, query=api_query, **kwargs)
docs: https://developer.zendesk.com/rest_api/docs/chat/chats#search-chats