def _fail_if_headless(self, message):
        if self.headless:
            raise UsageError('Cannot execute CLI command: %s' % message)
dataset/ETHPy150Open codalab/codalab-cli/codalab/lib/bundle_cli.py/BundleCLI._fail_if_headless/original