code: def update(self, **kwargs):
      self.snapshot_controller = SnapshotController()
      self.cli_helper.echo(__("info", "cli.snapshot.update"))
      snapshot_id = kwargs.get("id")
      # getting previous saved config and stats
      snapshot_obj = self.snapshot_controller.get(snapshot_id)
      config = snapshot_obj.config
      stats = snapshot_obj.stats
  
      # extracting config
      update_config_list = kwargs.get("config", None)
      if update_config_list:
          update_config = {}
          for item in update_config_list:
              item_parsed_dict = parse_cli_key_value(item, "config")
              update_config.update(item_parsed_dict)
          # updating config
          config.update(update_config)
  
      # extracting stats
      update_stats_list = kwargs.get("stats", None)
      if update_stats_list:
          update_stats = {}
          for item in update_stats_list:
              item_parsed_dict = parse_cli_key_value(item, "stats")
              update_stats.update(item_parsed_dict)
          # updating stats
          stats.update(update_stats)
  
      # extracting message
      message = kwargs.get("message", None)
      # extracting label
      label = kwargs.get("label", None)
  
      result = self.snapshot_controller.update(
          snapshot_id,
          config=config,
          stats=stats,
          message=message,
          label=label,
      )
      self.cli_helper.echo(
          __("info", "cli.snapshot.update.success", snapshot_id)
      )
      return result
  
imports: from __future__ import print_function
  import os
  from datetime import datetime
  from datmo.core.util.i18n import get
  from datmo.cli.driver.helper import Helper
  from datmo.core.util.misc_functions import mutually_exclusive, printable_object, prettify_datetime, parse_cli_key_value, format_table
  from datmo.core.util.exceptions import SnapshotCreateFromTaskArgs
  from datmo.cli.command.project import ProjectCommand
  from datmo.core.controller.snapshot import SnapshotController
label_desc: Use image node_id 6 for calling the SnapshotCommand obj's underlying member method code with example usage: obj.update() and returns: result