code: def test__validate_args_filename():
      with pytest.raises(ValueError) as e:
          _validate_args(
              image_dir=PATH_DIR,
              duplicate_map={"1": ["2"]},
              filename="2",
          )
      assert (
          str(e.value)
          == "Please provide a valid filename present as a key in the duplicate_map!"
      )
  
file_path: imagededup/tests/test_plotter.py
imports: import os
  import pytest
  import matplotlib.pyplot
  from pathlib import Path
  import numpy
  from imagededup.utils.plotter import _formatter, _validate_args, plot_duplicates
label_desc: Use image node_id 7 for calling a global function with example usage: test__validate_args_filename() without return types