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"]
code: def test_signed_integer_data(self, bins):
      # Regression test for gh-14379.
      a = np.array([-2, 0, 127], dtype=np.int8)
      hist, edges = np.histogram(a, bins=bins)
      hist32, edges32 = np.histogram(a.astype(np.int32), bins=bins)
      assert_array_equal(hist, hist32)
      assert_array_equal(edges, edges32)
  
imports: import functools
  from unittest import expectedFailure, skipIf
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, slowTest, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 10 for calling the TestHistogramOptimBinNums obj's underlying member method code with example usage: obj.test_signed_integer_data(bins) without return types