class_docstr: Provide test coverage when using provided estimators for optimal number of
  bins
class_docstr_tok: ["Provide","test","coverage","when","using","provided","estimators","for","optimal","number","of","bins"]
docstr: Check that weighted data raises a TypeError
docstr_tok: ["Check","that","weighted","data","raises","a","TypeError"]
code: def test_simple_weighted(self):
      """
      Check that weighted data raises a TypeError
      """
      estimator_list = ["fd", "scott", "rice", "sturges", "auto"]
      for estimator in estimator_list:
          assert_raises(
              TypeError,
              histogram,
              [1, 2, 3],
              estimator,
              weights=[1, 2, 3],
          )
  
imports: import numpy
  from numpy import histogram, histogramdd, histogram_bin_edges
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_allclose, assert_array_max_ulp, assert_raises_regex, suppress_warnings
  from numpy.testing._private.utils import requires_memory
  import pytest
label_desc: Use image node_id 11 for calling the TestHistogramOptimBinNums obj's underlying member method code with example usage: obj.test_simple_weighted() without return types