code: def test_bin_array_dims(self):
      # gracefully handle bins object > 1 dimension
      vals = np.linspace(0.0, 1.0, num=100)
      bins = np.array([[0, 0.5], [0.6, 1.0]])
      with assert_raises((RuntimeError, ValueError)):
          np.histogram(vals, bins=bins)
  
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 18 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_bin_array_dims() without return types