def cluster_application_statistics(self, state_list=None,
                                       application_type_list=None):
        path = '/ws/v1/cluster/appstatistics'

        # TODO: validate state argument
        states = ','.join(state_list) if state_list is not None else None
        if application_type_list is not None:
            applicationTypes = ','.join(application_type_list)
        else:
            applicationTypes = None

        loc_args = (
            ('states', states),
            ('applicationTypes', applicationTypes))
        params = self.construct_parameters(loc_args)

        return self.request(path, **params)
Import the standard pylab symbols into user_ns.
dataset/ETHPy150Open toidi/hadoop-yarn-api-python-client/yarn_api_client/resource_manager.py/ResourceManager.cluster_application_statistics--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/lib/pylabtools.py/import_pylab