code: def _deprecated_use_gpu() -> None:
      warnings.warn(
          "`use_gpu` is deprecated since 2.0.0, use `device` instead",
          FutureWarning,
      )
  
imports: import warnings
  from typing import Any, List, Optional, Type, Union
  import numpy
  from pyspark import keyword_only
  from pyspark.ml.param import Param, Params
  from pyspark.ml.param.shared import HasProbabilityCol, HasRawPredictionCol
  from xgboost import XGBClassifier, XGBRanker, XGBRegressor
  from .core import _ClassificationModel, _SparkXGBEstimator, _SparkXGBModel
  from .utils import get_class_name
label_desc: Use image node_id 2 for calling a global function with example usage: _deprecated_use_gpu() without return types