code: def cluster_application_kill(self, application_id):
          
  
          data = '{"state": "KILLED"}'
          path = '/ws/v1/cluster/apps/{appid}/state'.format(
              appid=application_id)
  
          return self.update(path, data)
docs: With the application kill API, you can kill an application
          that is not in FINISHED or FAILED state.
  
          :param str application_id: The application id
          :returns: API response object with JSON data
          :rtype: :py:class:`yarn_api_client.base.Response`