code: def test_value(self, in_type, test_data, kwargs, expected):
      input = {
          HoVerNetBranch.NP.value: in_type(test_data.astype(float)),
          HoVerNetBranch.HV.value: in_type(
              ComputeHoVerMaps()(test_data.astype(int))
          ),
          HoVerNetBranch.NC.value: in_type(test_data),
      }
  
      outputs = HoVerNetInstanceMapPostProcessingd()(input)
      outputs = HoVerNetNuclearTypePostProcessingd(**kwargs)(outputs)
  
      # instance prediction info
      for key in outputs["instance_info"]:
          assert_allclose(
              outputs["instance_info"][key]["centroid"],
              expected[0][key],
              type_test=False,
          )
  
      # instance map
      assert_allclose(
          outputs["instance_map"], expected[1], type_test=False
      )
  
      # type map
      if expected[2] is None:
          self.assertIsNone(outputs["type_map"])
      else:
          assert_allclose(
              outputs["type_map"], expected[2], type_test=False
          )
  
file_path: MONAI/tests/test_hovernet_nuclear_type_post_processingd.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.apps.pathology.transforms.post.dictionary import HoVerNetInstanceMapPostProcessingd, HoVerNetNuclearTypePostProcessingd
  from monai.transforms import ComputeHoVerMaps
  from monai.utils import min_version, optional_import
  from monai.utils.enums import HoVerNetBranch
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestHoVerNetNuclearTypePostProcessingd obj's underlying member method code with example usage: obj.test_value(in_type, test_data, kwargs, expected) without return types