code: def test_fbeta_multiclass_with_ignore_index(self):
      targets = self.targets.clone()
      targets[-1] = -100
      fbeta = FBeta(make_deterministic=self.make_deterministic)
      fbeta.update(self.predictions, targets)
  
      numpy.testing.assert_almost_equal(
          fbeta._pred_sum.tolist(), [1, 3, 0, 1, 0]
      )
      numpy.testing.assert_almost_equal(
          fbeta._true_sum.tolist(), [2, 1, 0, 1, 1]
      )
      numpy.testing.assert_almost_equal(
          fbeta._true_positive_sum.tolist(), [1, 1, 0, 1, 0]
      )
  
imports: from unittest import TestCase
  import numpy
  import torch
  import torch.nn
  from poutyne import F1, BinaryF1, FBeta, Model
label_desc: Use image node_id 7 for calling the BaseFBetaTest obj's underlying member method code with example usage: obj.test_fbeta_multiclass_with_ignore_index() without return types