code: def _check_sample_weight(sample_weight: Optional[ArrayLike]):
      if sample_weight is not None:
          raise ValueError("'sample_weight' is not supported.")
  
file_path: dask-ml/dask_ml/metrics/regression.py
imports: from typing import Optional
  import dask.array
  import numpy
  import sklearn.metrics
  from dask import is_dask_collection
  from dask.utils import derived_from
  from .._typing import ArrayLike
label_desc: Use image node_id 1 for calling a global function with example usage: _check_sample_weight(sample_weight) without return types