code: def __init__(
      self,
      apply_function: CLIFunction,
      short_flag: str,
      long_flag: str,
      is_flag: bool,
  ):
      if not re.match(r"-\w$", short_flag):
          raise ValueError(
              "Short flag malformed. "
              "One correct short flag would be: `-j`."
          )
      if not re.match(r"--[\w-]+\w$", long_flag):
          raise ValueError(
              "Long flag malformed. One correct long flag "
              "would be: `--my-pretty-flag`"
          )
      self.apply_function = apply_function
      self.short_flag = short_flag
      self.long_flag = long_flag
      self.is_flag = is_flag
  
      # trick for backward compatibility:
      self.arg = None if is_flag else "VALUE"
      self.arg_description = None if is_flag else ""
  
imports: from typing import Callable
  import inspect
  import re
  from sacred.run import Run
  from sacred.commands import print_config
  from sacred.utils import convert_camel_case_to_snake_case
label_desc: Use image node_id 1 to create a new CLIOption object  with example: obj = CLIOption(apply_function, short_flag, long_flag, is_flag)