code: def _ensure_copyright(lines, path):
      n_expected = {
          "mne/preprocessing/_csd.py": 2,
          "mne/transforms.py": 2,
      }
      n_copyright = sum(
          line.startswith("# Copyright ") for line in lines
      )
      assert n_copyright <= n_expected.get(str(path), 1), n_copyright
      insert = lines.index(LICENSE_LINE) + 1
      if lines[insert].startswith("# Copyright"):
          lines[insert] = COPYRIGHT_LINE
      else:
          lines.insert(insert, COPYRIGHT_LINE)
      assert lines.count(COPYRIGHT_LINE) == 1, lines.count(
          COPYRIGHT_LINE
      )
  
imports: import re
  from pathlib import Path
  import numpy
  from git import Repo
label_desc: Use image node_id 3 for calling a global function with example usage: _ensure_copyright(lines, path) without return types