code: def test_plot_defect_montage(name, n):
      """Test plotting defect montages (i.e. with duplicate labels)."""
      # montage name and number of unique labels
      m = make_standard_montage(name)
      n -= 3  # new montage does not have fiducials
      fig = m.plot()
      collection = fig.axes[0].collections[0]
      assert collection._edgecolors.shape[0] == n
      assert collection._facecolors.shape[0] == n
      assert collection._offsets.shape[0] == n
  
imports: from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pytest
  from mne.channels import make_dig_montage, make_standard_montage, read_dig_fif
label_desc: Use image node_id 2 for calling a global function with example usage: test_plot_defect_montage(name, n) without return types