code: def check_parameters_match(func, cls=None):
      """Check docstring, return list of incorrect results."""
      from numpydoc.validate import validate
  
      name = _func_name(func, cls)
      skip = (
          not name.startswith("vispy.")
          or any(re.match(d, name) for d in docstring_ignores)
          or "deprecation_wrapped"
          in getattr(getattr(func, "__code__", None), "co_name", "")
      )
      if skip:
          return list()
      if cls is not None:
          for subclass, ignores in subclass_name_ignores:
              if (
                  issubclass(cls, subclass)
                  and name.split(".")[-1] in ignores
              ):
                  return list()
      incorrect = [
          "%s : %s : %s" % (name, err[0], err[1])
          for err in validate(name)["errors"]
          if err[0] not in error_ignores
          and (name.split(".")[-1], err[0])
          not in error_ignores_specific
      ]
      return incorrect
  
file_path: vispy/vispy/util/tests/test_docstring_parameters.py
imports: import re
  import inspect
  import pytest
  import vispy.scene.cameras.magnify
  from vispy.testing import run_tests_if_main, requires_numpydoc
label_desc: Use image node_id 2 for calling a global function with example usage: check_parameters_match(func, cls) and returns: incorrect, list, list