code: def test_shape(self, in_type, type_pred, seg_pred, bbox, expected):
      result = GenerateInstanceType()(
          in_type(type_pred[None]), in_type(seg_pred[None]), bbox, 1
      )
      assert_allclose(result, expected)
  
file_path: MONAI/tests/test_generate_instance_type.py
imports: from __future__ import annotations
  import unittest
  import numpy
  from parameterized import parameterized
  from monai.apps.pathology.transforms.post.array import GenerateInstanceType
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestGenerateInstanceType obj's underlying member method code with example usage: obj.test_shape(in_type, type_pred, seg_pred, bbox, expected) without return types