code: def handler(cls, options, config):
      subcommands = cls._subcommands()
  
      if options.subcommand in subcommands:
          return subcommands[options.subcommand].handler(
              options, config
          )
  
      LOGGER.error("Unhandled output subcommand %s", options.subcommand)
  
imports: import json
  from streamalert.shared.logger import get_logger
  from streamalert.alert_processor.outputs.output_base import StreamAlertOutput, OutputCredentialsProvider
  from streamalert_cli.helpers import user_input, response_is_valid
  from streamalert_cli.outputs.helpers import output_exists
  from streamalert_cli.utils import CLICommand, generate_subparser
label_desc: Use image node_id 2 for calling the OutputCommand obj's underlying member method code with example usage: obj.handler(cls, options, config) and returns: subcommands