code: def test_evaluate_preset(
      self, ground_truth, predictions, expected_fscore
  ):
      tensor_shape = random_tensor_shape()
  
      ground_truth_labels = np.tile(ground_truth, tensor_shape + [1])
      predicted_labels = np.tile(predictions, tensor_shape + [1])
      expected = np.tile(expected_fscore, tensor_shape)
  
      result = fscore.evaluate(
          ground_truth_labels,
          predicted_labels,
          precision_function=binary_precision_function,
          recall_function=binary_recall_function,
      )
  
      self.assertAllClose(expected, result)
  
file_path: graphics/tensorflow_graphics/nn/metric/tests/fscore_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow_graphics.nn.metric import fscore
  from tensorflow_graphics.nn.metric import precision
  from tensorflow_graphics.nn.metric import recall
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 1 for calling the FscoreTest obj's underlying member method code with example usage: obj.test_evaluate_preset(ground_truth, predictions, expected_fscore) without return types