code: def test_do_not_include_background(self):
      metric = FBetaScore(include_background=False)
      metric(
          y_pred=torch.Tensor(
              [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]
          ),
          y=torch.Tensor([[0, 1, 1, 1], [0, 1, 1, 1], [0, 1, 1, 1]]),
      )
      assert_allclose(
          metric.aggregate()[0],
          torch.Tensor([1.0]),
          atol=1e-7,
          rtol=1e-7,
      )
  
file_path: MONAI/tests/test_compute_f_beta.py
imports: from __future__ import annotations
  import unittest
  import numpy
  import torch
  from monai.metrics import FBetaScore
  from tests.utils import assert_allclose
label_desc: Use image node_id 7 for calling the TestFBetaScore obj's underlying member method code with example usage: obj.test_do_not_include_background() without return types