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