code: def test_construct_occ_number():
      from deepchem.utils.safeops_utils import _construct_occ_number
  
      result = _construct_occ_number(
          2.5, 2, 3, 3, torch.double, torch.device("cpu")
      )
      assert torch.allclose(
          torch.tensor([1.0000, 1.0000, 0.5000], dtype=torch.float64),
          result,
      )
  
imports: import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_construct_occ_number() without return types