def _parse_cgroup_file(self, stat_file):
        self.log.debug("Opening cgroup file: %s" % stat_file)
        try:
            with open(stat_file, 'r') as fp:
                return dict(map(lambda x: x.split(), fp.read().splitlines()))
        except IOError:
            # It is possible that the container got stopped between the API call and now
            self.log.info("Can't open %s. Metrics for this container are skipped." % stat_file)
A demonstration showing how each tree transform can be used.
dataset/ETHPy150Open serverdensity/sd-agent/checks.d/docker.py/Docker._parse_cgroup_file--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/treetransforms.py/demo