code: def test_unsigned_monotonicity_check(self):
      # Ensures ValueError is raised if bins not increasing monotonically
      # when bins contain unsigned values (see #9222)
      arr = np.array([2])
      bins = np.array([1, 3, 1], dtype="uint64")
      with assert_raises((RuntimeError, ValueError)):
          hist, edges = np.histogram(arr, 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 19 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_unsigned_monotonicity_check() without return types