code: def create_settings(self):
      self.flags = []
      self.flag_count = HiddenCount(self.flags)
      self.add_flag_button = DoSomething(
          "", "Add another flag", self.add_flag
      )
      self.spacer_1 = Divider()
      self.add_flag(can_delete=False)
      self.ignore_flag_on_last = Binary(
          "Ignore flag skips on last cycle?",
          False,
          doc="""\
  When set to *{YES}*, this option allows you to bypass skipping on the last
  cycle of an image group.  This behavior is usually not desired, but may be 
  useful when using SaveImages 'Save on last cycle' option for an image made
  by any other module than MakeProjection, CorrectIlluminationCalculate, and Tile.
  """.format(
              **{"YES": "Yes"}
          ),
      )
  
imports: import logging
  import os
  import numpy
  from cellprofiler_core.constants.measurement import IMAGE, COLTYPE_INTEGER
  from cellprofiler_core.constants.module import IO_FOLDER_CHOICE_HELP_TEXT
  from cellprofiler_core.constants.workspace import DISPOSITION_CONTINUE, DISPOSITION_SKIP
  from cellprofiler_core.measurement import Measurements
  from cellprofiler_core.module import Module
  from cellprofiler_core.preferences import DEFAULT_INPUT_FOLDER_NAME
  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, RemoveSettingButton
  from cellprofiler_core.setting.multichoice import MultiChoice
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import Text, Filename, Directory, Float
  from cellprofiler.utilities.rules import Rules
label_desc: Use image node_id 2 for calling the FlagImage obj's underlying member method code with example usage: obj.create_settings() without return types