docstr: Add a class for the classifier to save
  
  can_delete - True to include a "remove" button, False if you're not
               allowed to remove it.
docstr_tok: ["Add","a","class","for","the","classifier","to","save","can_delete","-","True","to","include","a","``","remove","''","button",",","False","if","you","'re","not","allowed","to","remove","it","."]
code: def add_single_class(self, can_delete=True):
      """Add a class for the classifier to save
  
      can_delete - True to include a "remove" button, False if you're not
                   allowed to remove it.
      """
      group = SettingsGroup()
      if can_delete:
          group.append("divider", Divider(line=True))
  
      group.append(
          "class_name",
          Choice(
              "Select a class",
              choices=self.get_class_choices(None),
              choices_fn=self.get_class_choices,
              doc="""\
  *(Used only when using {BY_MODEL} mode*
  
  Select which of the class from the classifier you'd like to create
  an object set from.
  Please note the following:
  
      -  An object is retained if it falls into the selected class.
      -  You can save multiple classes by using the "Add a class"
         button. Each becomes a separate object set.
      -  If you want to merge classes together, try the CombineObjects module.
  
  """,
          ),
      )
  
      group.append(
          "class_objects_name",
          LabelName(
              "Name the output objects",
              "ClassifiedObjects",
              doc="""\
  *(Used only if using a classifier to create classes)*
  
  Select a name for the object set generated by your classifier.
      """,
          ),
      )
  
      group.can_delete = can_delete
  
      if can_delete:
          group.remove_settings_button = RemoveSettingButton(
              "", "Remove this class", self.desired_classes, group
          )
      self.desired_classes.append(group)
  
imports: import functools
  import os
  import numpy
  from cellprofiler.modules import _help
  from cellprofiler.utilities.rules import Rules
  from cellprofiler_core.constants.measurement import COLTYPE_FLOAT, M_LOCATION_CENTER_X, M_LOCATION_CENTER_Y, COLTYPE_VARCHAR, C_COUNT, C_CHILDREN, C_LOCATION, C_NUMBER, C_PARENT, FTR_OBJECT_NUMBER, FTR_CENTER_X, FTR_CENTER_Y, FTR_CENTER_Z
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
  from cellprofiler_core.constants.measurement import IMAGE
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import Module
  from cellprofiler_core.object import Objects
  from cellprofiler_core.preferences import get_default_colormap, get_headless
  from cellprofiler_core.setting import Binary
  from cellprofiler_core.setting import Divider
  from cellprofiler_core.setting import HiddenCount
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting import SettingsGroup
  from cellprofiler_core.setting import ValidationError
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.do_something import DoSomething
  from cellprofiler_core.setting.do_something import RemoveSettingButton
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import Alphanumeric, Directory, Filename, LabelName
  from cellprofiler_core.setting.text import Float
  from cellprofiler_core.setting.text import ImageName
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.setting.text import Text
  from cellprofiler_core.constants.measurement import FF_CHILDREN_COUNT
  from cellprofiler_core.constants.measurement import FF_COUNT
  from cellprofiler_core.constants.measurement import FF_PARENT
  from cellprofiler_core.module.image_segmentation import ImageSegmentation
label_desc: Use image node_id 4 for calling the ClassifyObjects obj's underlying member method code with example usage: obj.add_single_class(can_delete) without return types