code: def test_shape(self, in_type, type_pred, seg_pred, bbox, expected):
      test_data = {
          "type_pred": in_type(type_pred[None]),
          "seg": in_type(seg_pred[None]),
          "bbox": bbox,
          "id": 1,
      }
      result = GenerateInstanceTyped(keys="type_pred")(test_data)
      assert_allclose(result["type_info"]["inst_type"], expected[0])
      assert_allclose(result["type_info"]["type_prob"], expected[1])
  
file_path: MONAI/tests/test_generate_instance_typed.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.apps.pathology.transforms.post.dictionary import GenerateInstanceTyped
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestGenerateInstanceTyped obj's underlying member method code with example usage: obj.test_shape(in_type, type_pred, seg_pred, bbox, expected) without return types