code: def get_option_specs(
      name, required=False, default=None, help_str="", **kwargs
  ):
      """A wrapper function to get a specification as a dictionary."""
      if isinstance(default, int):
          ret = {
              "name": name,
              "required": required,
              "default": default,
              "help": help_str,
              "type": int,
          }
      elif isinstance(default, float):
          ret = {
              "name": name,
              "required": required,
              "default": default,
              "help": help_str,
              "type": float,
          }
      else:
          ret = {
              "name": name,
              "required": required,
              "default": default,
              "help": help_str,
          }
      for key, value in list(kwargs.items()):
          ret[key] = value
      return ret
  
file_path: dragonfly/dragonfly/utils/option_handler.py
imports: import argparse
  from copy import deepcopy
label_desc: Use image node_id 1 for calling a global function with example usage: get_option_specs(name, required, default, help_str) and returns: ret