code: def test_bool_tensor_negate():
      input = torch.ones(1, dtype=torch.bool)
      optimized_negate = optimize_torch(
          negate,
          input,
      )
      with tempfile.NamedTemporaryFile(suffix=".pt") as tmp:
          torch.save(optimized_negate, tmp.name)
          loaded_mod = torch.load(tmp.name)
          output = loaded_mod(negate(input))
      tvm.testing.assert_allclose(
          input.numpy(), output.numpy(), 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 4 for calling a global function with example usage: test_bool_tensor_negate() without return types