class_docstr: Detects labels that appear only in the test set.
  
  Parameters
  ----------
  max_images_to_display_per_label : int , default: 3
      maximum number of images to show from each newly found label in the test set.
  max_new_labels_to_display : int , default: 3
      Maximum number of new labels to display in output.
  {additional_check_init_params:2*indent}
class_docstr_tok: ["Detects","labels","that","appear","only","in","the","test","set",".","Parameters","--","--","--","--","--","max_images_to_display_per_label",":","int",",","default",":","3","maximum","number","of","images","to","show","from","each","newly","found","label","in","the","test","set",".","max_new_labels_to_display",":","int",",","default",":","3","Maximum","number","of","new","labels","to","display","in","output",".","{","additional_check_init_params:2","*","indent","}"]
code: def _update_images_dict(
      self, label, class_id, image, image_identifier
  ):
      if class_id not in self._display_images:
          self._display_images[class_id] = {
              "images": [image],
              "labels": [label],
              "image_identifiers": [image_identifier],
          }
      elif (
          len(self._display_images[class_id]["images"])
          < self.max_images_to_display_per_label
      ):
          self._display_images[class_id]["images"].append(image)
          self._display_images[class_id]["labels"].append(label)
          self._display_images[class_id]["image_identifiers"].append(
              image_identifier
          )
  
imports: import string
  from collections import defaultdict
  from secrets import choice
  from typing import Dict, Optional
  import numpy
  from deepchecks.core import CheckResult, ConditionResult, DatasetKind
  from deepchecks.core.condition import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.core.reduce_classes import ReduceLabelMixin
  from deepchecks.utils.strings import format_number, format_percent
  from deepchecks.vision._shared_docs import docstrings
  from deepchecks.vision.base_checks import TrainTestCheck
  from deepchecks.vision.context import Context
  from deepchecks.vision.utils.image_functions import draw_image
  from deepchecks.vision.vision_data import TaskType
  from deepchecks.vision.vision_data.batch_wrapper import BatchWrapper
label_desc: Use image node_id 3 for calling the NewLabels obj's underlying member method code with example usage: obj._update_images_dict(label, class_id, image, image_identifier) without return types