code: def check_parameters_match(func, doc=None):
      """Check docstring, return list of incorrect results."""
      incorrect = []
      name_ = get_name(func)
      if not name_.startswith("celer."):
          return incorrect
      if inspect.isdatadescriptor(func):
          return incorrect
      args = _get_args(func)
      # drop self
      if len(args) > 0 and args[0] == "self":
          args = args[1:]
  
      if doc is None:
          with warnings.catch_warnings(record=True) as w:
              try:
                  doc = docscrape.FunctionDoc(func)
              except Exception as exp:
                  incorrect += [name_ + " parsing error: " + str(exp)]
                  return incorrect
          if len(w):
              raise RuntimeError("Error for %s:\n%s" % (name_, w[0]))
      # check set
      param_names = [name for name, _, _ in doc["Parameters"]]
      # clean up some docscrape output:
      param_names = [
          name.split(":")[0].strip("` ") for name in param_names
      ]
      param_names = [name for name in param_names if "*" not in name]
      if len(param_names) != len(args):
          bad = str(
              sorted(
                  list(set(param_names) - set(args))
                  + list(set(args) - set(param_names))
              )
          )
          if (
              not any(re.match(d, name_) for d in _docstring_ignores)
              and "deprecation_wrapped" not in func.__code__.co_name
          ):
              incorrect += [name_ + " arg mismatch: " + bad]
      else:
          for n1, n2 in zip(param_names, args):
              if n1 != n2:
                  incorrect += [name_ + " " + n1 + " != " + n2]
      return incorrect
  
file_path: celer/celer/tests/test_docstring_parameters.py
imports: import inspect
  import os.path
  import re
  import sys
  from unittest import SkipTest
  import warnings
  from pkgutil import walk_packages
  from inspect import getsource
  from numpydoc import docscrape
  import celer
label_desc: Use image node_id 2 for calling a global function with example usage: check_parameters_match(func, doc) and returns: incorrect, incorrect, incorrect, incorrect