class_docstr: Produce a custom-formatted `--help` option.
  
  See https://goo.gl/DKtHb5 for details.
class_docstr_tok: ["Produce","a","custom-formatted","`","--","help","`","option",".","See","https",":","\/\/goo.gl\/DKtHb5","for","details","."]
docstr: Help string that (almost) always inserts %(default)s.
docstr_tok: ["Help","string","that","(","almost",")","always","inserts","%","(","default",")","s","."]
code: def _get_help_string(self, action):
      """
      Help string that (almost) always inserts %(default)s.
      """
      help = action.help
      if (
          "%(default)" in action.help
          or not isinstance(action, argparse._StoreAction)
          or action.default is argparse.SUPPRESS
      ):
          return help
  
      defaulting_nargs = [argparse.OPTIONAL, argparse.ZERO_OR_MORE]
      if action.option_strings or action.nargs in defaulting_nargs:
          help += " (default: %(default)s)"
      if (
          hasattr(action, "recommended")
          and action.recommended
          and action.recommended != action.default
      ):
          help += "(recommended: %(recommended)s)"
          help = help.replace(")(recommended", ", recommended")
      return help
  
imports: import argparse
  import importlib
  import os
  import sys
  import datetime
  import parlai
  import parlai.utils.logging
  from parlai.core.build_data import modelzoo_path
  from parlai.core.loader import load_teacher_module, load_agent_module, load_world_module
  from parlai.tasks.tasks import ids_to_tasks
  from parlai.core.opt import Opt
  from parlai.utils.io import PathManager
  from typing import List, Optional
label_desc: Use image node_id 5 for calling the CustomHelpFormatter obj's underlying member method code with example usage: obj._get_help_string(action) and returns: help, help