code: def test_sample_zero_weights(self, obj):
      # All zeros raises errors
  
      zero_weights = [0] * 10
      with pytest.raises(
          ValueError, match="Invalid weights: weights sum to zero"
      ):
          obj.sample(n=3, weights=zero_weights)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, Series
  import pandas._testing
  import pandas.core.common
label_desc: Use image node_id 11 for calling the TestSample obj's underlying member method code with example usage: obj.test_sample_zero_weights(obj) without return types