code: def get_param_names(method):
      """
      Returns a list of keyword-only parameter names that may be
      passed into method.
  
      Parameters
      ----------
      method : function
          The method for which to return keyword-only parameters.
  
      Returns
      -------
      parameters : list
          A list of keyword-only parameter names for method.
      """
      try:
          signature = inspect.signature(method)
      except (ValueError, TypeError) as e:
          raise e
  
      parameters = [
          p
          for p in signature.parameters.values()
          if p.name != "self" and p.kind != p.VAR_KEYWORD
      ]
  
      return sorted([p.name for p in parameters])
  
file_path: yellowbrick/yellowbrick/utils/helpers.py
imports: import re
  import inspect
  import sklearn
  import numpy
  from sklearn.pipeline import Pipeline
  from sklearn.utils.validation import check_is_fitted
  from yellowbrick.utils.types import is_estimator
  from yellowbrick.exceptions import YellowbrickTypeError
  from yellowbrick.contrib.wrapper import ContribEstimator
label_desc: Use image node_id 6 for calling a global function with example usage: get_param_names(method) and returns: sorted