code: def test_sample_sampling_without_replacement():
      """Ensures that `sample()` is performing sampling without replacement.
  
      See GH dsgibbons#36.
      """
      arr = np.arange(100)
      new_arr = shap.utils.sample(arr, 99, random_state=0)
  
      assert len(new_arr) == 99
      assert len(np.unique(new_arr)) == 99
  
file_path: shap/tests/utils/test_general.py
imports: import numpy
  import pandas
  import pytest
  import scipy.sparse
  import shap
label_desc: Use image node_id 4 for calling a global function with example usage: test_sample_sampling_without_replacement() without return types