code: def test_sample_no_op():
      """Ensures that `sample()` is a no-op when numsamples is larger
      than the size of X.
      """
      arr = np.arange(50)
      new_arr = shap.utils.sample(arr, 100, random_state=42)
  
      assert len(arr) == len(new_arr)
  
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 3 for calling a global function with example usage: test_sample_no_op() without return types