code: def has_fit_parameter(estimator, parameter):
      """Checks whether the estimator's fit method supports the given parameter.
      Parameters
      ----------
      estimator : object
          An estimator to inspect.
      parameter: str
          The searched parameter.
      Returns
      -------
      is_parameter: bool
          Whether the parameter was found to be a named parameter of the
          estimator's fit method.
      Examples
      --------
      >>> from sklearn.svm import SVC
      >>> has_fit_parameter(SVC(), "sample_weight")
      True
      """
      return parameter in signature(estimator.fit).parameters
  
imports: import warnings
  import numbers
  import numpy
  import scipy.sparse
  from ..None import six
  from ...utils.exceptions import NotFittedError, NonBLASDotWarning, DataConversionWarning
label_desc: Use image node_id 14 for calling a global function with example usage: has_fit_parameter(estimator, parameter) and returns: unknown