code: def has_fit_parameter(estimator, parameter):
      """Checks whether the estimator's fit method supports the given parameter.
  
      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 ..externals import six
  from ..utils.fixes import signature
  from .deprecation import deprecated
  from ..exceptions import DataConversionWarning
  from ..exceptions import NonBLASDotWarning
  from ..exceptions import NotFittedError
label_desc: Use image node_id 14 for calling a global function with example usage: has_fit_parameter(estimator, parameter) and returns: unknown