code: def test_onehot_sparse_drop(as_array):
      X = DataFrame(
          {"g": ["M", "F", "F"], "i": [1, 3, 2], "l": [5, 5, 6]}
      )
      drop = {"g": "F", "i": 3, "l": 6}
  
      ary = from_df_to_numpy(X)
      drop_ary = ["F", 3, 6]
      if as_array:
          X = _from_df_to_cupy(X)
          ary = cp.asnumpy(X)
          drop = drop_ary = _convert_drop(drop)
  
      enc = OneHotEncoder(sparse=True, drop=drop, categories="auto")
      sk_enc = SkOneHotEncoder(
          sparse=True, drop=drop_ary, categories="auto"
      )
      ohe = enc.fit_transform(X)
      ref = sk_enc.fit_transform(ary)
      cp.testing.assert_array_equal(ohe.toarray(), ref.toarray())
  
imports: from sklearn.preprocessing import OneHotEncoder
  from cuml.testing.utils import stress_param, from_df_to_numpy, assert_inverse_equal, generate_inputs_from_categories
  from cuml.preprocessing import OneHotEncoder
  from cuml.internals.safe_imports import gpu_only_import_from
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  import math
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 14 for calling a global function with example usage: test_onehot_sparse_drop(as_array) without return types