code: def test_type_shape(self, input_data, data, expected_fg, expected_bg):
      result = FgBgToIndicesd(**input_data)(data)
      assert_allclose(result["label_fg_indices"], expected_fg)
      assert_allclose(result["label_bg_indices"], expected_bg)
  
file_path: MONAI/tests/test_fg_bg_to_indicesd.py
imports: from __future__ import annotations
  import unittest
  from parameterized import parameterized
  from monai.transforms import FgBgToIndicesd
  from tests.utils import TEST_NDARRAYS, assert_allclose
label_desc: Use image node_id 1 for calling the TestFgBgToIndicesd obj's underlying member method code with example usage: obj.test_type_shape(input_data, data, expected_fg, expected_bg) without return types