code: def testHelpTextFunctionWithKwargsAndDefaults(self):
      component = tc.fn_with_kwarg_and_defaults
      help_screen = helptext.HelpText(
          component=component,
          trace=trace.FireTrace(component, name="text"),
      )
      self.assertIn("NAME\n    text", help_screen)
      self.assertIn("SYNOPSIS\n    text ARG1 ARG2 <flags>", help_screen)
      self.assertIn("DESCRIPTION\n    Function with kwarg", help_screen)
      self.assertIn(
          "FLAGS\n    -o, --opt=OPT\n        Default: True\n"
          "    The following flags are also accepted."
          "\n    --arg3\n        Description of arg3.\n    "
          "Additional undocumented flags may also be accepted.",
          help_screen,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import textwrap
  from fire import formatting
  from fire import helptext
  from fire import test_components
  from fire import testutils
  from fire import trace
  import six
label_desc: Use image node_id 8 for calling the HelpTest obj's underlying member method code with example usage: obj.testHelpTextFunctionWithKwargsAndDefaults() without return types