code: def test_type(self):
      # Check the type of the returned histogram
      a = np.arange(10) + 0.5
      h, b = histogram(a)
      assert_(np.issubdtype(h.dtype, np.integer))
  
      h, b = histogram(a, density=True)
      assert_(np.issubdtype(h.dtype, np.floating))
  
      h, b = histogram(a, weights=np.ones(10, int))
      assert_(np.issubdtype(h.dtype, np.integer))
  
      h, b = histogram(a, weights=np.ones(10, float))
      assert_(np.issubdtype(h.dtype, np.floating))
  
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 6 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_type() without return types