code: def test_complete_subcommands_subapp1(self, argcomplete_on):
      # subcommand handling modifies _ARGCOMPLETE env var global state, so
      # only can test one completion per unit test
      app = MainApp()
      try:
          assert set(self.run_completer(app, "app subapp1 --Sub")) > {
              "--SubApp1.show_config",
              "--SubApp1.log_level",
              "--SubApp1.log_format",
          }
      finally:
          SubApp1.clear_instance()
  
imports: import io
  import os
  import typing
  import pytest
  from traitlets import Unicode
  from traitlets.config.application import Application
  from traitlets.config.configurable import Configurable
  from traitlets.config.loader import KVArgParseConfigLoader
label_desc: Use image node_id 6 for calling the TestArgcomplete obj's underlying member method code with example usage: obj.test_complete_subcommands_subapp1(argcomplete_on) without return types