code: def test_rsl_badargs():
      assert_raises(ValueError, robust_single_linkage, "fail", 0.4)
      assert_raises(ValueError, robust_single_linkage, None, 0.4)
      assert_raises(ValueError, robust_single_linkage, X, 0.4, k="fail")
      assert_raises(ValueError, robust_single_linkage, X, 0.4, k=-1)
      assert_raises(
          ValueError, robust_single_linkage, X, 0.4, metric="imperial"
      )
      assert_raises(
          ValueError, robust_single_linkage, X, 0.4, metric=None
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="minkowski",
          p=-1,
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="minkowski",
          p=-1,
          algorithm="prims_kdtree",
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="minkowski",
          p=-1,
          algorithm="prims_balltree",
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="minkowski",
          p=-1,
          algorithm="boruvka_balltree",
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="precomputed",
          algorithm="boruvka_kdtree",
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="precomputed",
          algorithm="prims_kdtree",
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="precomputed",
          algorithm="prims_balltree",
      )
      assert_raises(
          ValueError,
          robust_single_linkage,
          X,
          0.4,
          metric="precomputed",
          algorithm="boruvka_balltree",
      )
      assert_raises(ValueError, robust_single_linkage, X, 0.4, alpha=-1)
      assert_raises(
          ValueError, robust_single_linkage, X, 0.4, alpha="fail"
      )
      assert_raises(
          Exception,
          robust_single_linkage,
          X,
          0.4,
          algorithm="something_else",
      )
      assert_raises(
          TypeError,
          robust_single_linkage,
          X,
          0.4,
          metric="minkowski",
          p=None,
      )
      assert_raises(
          ValueError, robust_single_linkage, X, 0.4, leaf_size=0
      )
      assert_raises(ValueError, robust_single_linkage, X, 0.4, gamma=0)
  
imports: import numpy
  from scipy.spatial import distance
  from scipy import sparse
  from sklearn.utils.estimator_checks import check_estimator
  from sklearn.utils._testing import assert_array_equal, assert_raises
  from hdbscan import RobustSingleLinkage, robust_single_linkage
  from sklearn import datasets
  import warnings
  from sklearn.datasets import make_blobs
  from sklearn.utils import shuffle
  from sklearn.preprocessing import StandardScaler
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_rsl_badargs() without return types