code: def log_summary(self, stats):
      from dvc.ui import ui
      from dvc.utils.humanize import get_summary
  
      default_msg = "Everything is up to date."
  
      if not self.args.remote and not self.repo.config["core"].get(
          "remote"
      ):
          ui.warn("No remote provided and no default remote set.")
  
      ui.write(get_summary(stats.items()) or default_msg)
  
file_path: dvc/dvc/commands/data_sync.py
imports: import argparse
  from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.log import logger
label_desc: Use image node_id 1 for calling the CmdDataBase obj's underlying member method code with example usage: obj.log_summary(stats) without return types