code: def test_sum_up_tensor():
      x = torch.randint(0, 2, (16,))
      y = x.bool()
      optimized_func = optimize_torch(
          sum_up_tensor,
          (y,),
      )
      ret1 = (x[x == 0]).size(dim=0)
      ret2 = optimized_func(y).numpy()
      tvm.testing.assert_allclose(ret1, ret2, atol=1e-5, rtol=1e-5)
  
file_path: tvm/apps/pt_tvmdsoop/tests/test_boolean_tensor.py
imports: import tempfile
  import torch
  import tvm
  import tvm.testing
  from tvm.contrib.torch import as_torch, optimize_torch
  from tvm.script import tir
label_desc: Use image node_id 5 for calling a global function with example usage: test_sum_up_tensor() without return types