code: def test_check_duplicate_color_error(tmpdir, tmp_text_file):
      color_mask_file = tmpdir.join("input_color_mask.png")
      color_mask_file.write(b"")
  
      with pytest.raises(ValueError, match=r".*specify either.*"):
          cli.parse_args(
              [
                  "--color",
                  "red",
                  "--colormask",
                  str(color_mask_file),
                  "--text",
                  str(tmp_text_file),
              ]
          )
  
imports: import argparse
  import os
  import subprocess
  import sys
  from collections import namedtuple
  import contextlib
  import wordcloud
  from wordcloud import wordcloud_cli
  from unittest.mock import patch
  import pytest
  import matplotlib
label_desc: Use image node_id 8 for calling a global function with example usage: test_check_duplicate_color_error(tmpdir, tmp_text_file) without return types