code: def compute_isolated_tumor_cells(
      tumor_mask: np.ndarray, threshold: float
  ) -> list[int]:
      """
      This method computes identifies Isolated Tumor Cells (ITC) and return their labels.
  
      Args:
          tumor_mask: the tumor mask.
          threshold: the threshold (at the mask level) to define an isolated tumor cell (ITC).
              A region with the longest diameter less than this threshold is considered as an ITC.
      """
      max_label = np.amax(tumor_mask)
      properties = measure.regionprops(tumor_mask)
      itc_list = [
          i + 1
          for i in range(max_label)
          if properties[i].major_axis_length < threshold
      ]
  
      return itc_list
  
file_path: MONAI/monai/apps/pathology/utils.py
imports: from __future__ import annotations
  from typing import Any
  import numpy
  import torch
  from monai.transforms.post.array import ProbNMS
  from monai.utils import optional_import
label_desc: Use image node_id 2 for calling a global function with example usage: compute_isolated_tumor_cells(tumor_mask, threshold) and returns: itc_list