code: def cluster_application_state(self, application_id):
          
          path = '/ws/v1/cluster/apps/{appid}/state'.format(
              appid=application_id)
  
          return self.request(path)
docs: With the application state API, you can obtain the current
          state of an application.
  
          :param str application_id: The application id
          :returns: API response object with JSON data
          :rtype: :py:class:`yarn_api_client.base.Response`