code: def test_run_cli_failure_status_code(self, mock_popen):
      mock_proc = mock.MagicMock()
      mock_proc.returncode = 1
      mock_proc.stdout = BytesIO(b"")
      mock_popen.return_value.__enter__.return_value = mock_proc
  
      self.db_hook.pinot_admin_system_exit = True
      params = ["foo", "bar", "baz"]
      with pytest.raises(AirflowException):
          self.db_hook.run_cli(params)
      params.insert(0, "pinot-admin.sh")
      env = os.environ.copy()
      env.update({"JAVA_OPTS": "-Dpinot.admin.system.exit=true "})
      mock_popen.assert_called_once_with(
          params,
          stderr=subprocess.STDOUT,
          stdout=subprocess.PIPE,
          close_fds=True,
          env=env,
      )
  
imports: from __future__ import annotations
  import os
  import subprocess
  from io import BytesIO
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.apache.pinot.hooks.pinot import PinotAdminHook, PinotDbApiHook
label_desc: Use image node_id 8 for calling the TestPinotAdminHook obj's underlying member method code with example usage: obj.test_run_cli_failure_status_code(mock_popen) without return types