code: def digitize(x, bins):
      return np.searchsorted(bins, x, side="left")
  
imports: from ....internals import _deprecate_pos_args
  from ....internals.memory_utils import using_output_type
  from ....common.array_descriptor import CumlArrayDescriptor
  from ....internals.array_sparse import SparseCumlArray
  from ....thirdparty_adapters import check_array
  from ..utils.validation import FLOAT_DTYPES
  from ..utils.validation import check_is_fitted
  from cuml.internals.mixins import SparseInputTagMixin
  from ..utils.skl_dependencies import BaseEstimator, TransformerMixin
  from cuml.cluster import KMeans
  from cuml.preprocessing import OneHotEncoder
  import warnings
  from cuml.internals.safe_imports import cpu_only_import
  import numbers
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 1 for calling a global function with example usage: digitize(x, bins) and returns: np