code: def test_language_is_required(mocked_exit):
      mocked_stderr = io.StringIO()
  
      with mock.patch.object(sys, "stderr", new=mocked_stderr):
          cli.parse_args([])
  
      assert (
          "the following arguments are required: --language"
          in mocked_stderr.getvalue()
      )
      mocked_exit.assert_called_with(2)
  
imports: import io
  import sys
  from unittest import mock
  from _pytest import capture
  from m2cgen import __version__, cli
  from tests.utils import verify_python_model_is_expected
label_desc: Use image node_id 4 for calling a global function with example usage: test_language_is_required(mocked_exit) without return types