def _exec_storm_cmd(self, cmd, verbose=None):
        storm_cmd = self._build_storm_cmd(cmd)

        out_stream = None
        if verbose is None:
            verbose = self.verbose
        if not verbose:
            out_stream = open(os.devnull, "w")

        env = _get_storm_cmd_env(self.jvm_opts)

        proc = subprocess.Popen(storm_cmd,
                                stdout=out_stream,
                                stderr=subprocess.STDOUT,
                                env=env)
        out_data, _ = proc.communicate()
        if proc.returncode != 0:
            raise StormError(
                "Storm command failed. Run with --verbose for more info.")
        return out_data
Returns True if the path exists and is a folder.
dataset/ETHPy150Open Yelp/pyleus/pyleus/cli/storm_cluster.py/StormCluster._exec_storm_cmd--crossover with--dataset/ETHPy150Open enthought/traits/traits/tests/test_protocols_usage.py/File._get_is_folder