code: def ds_compare(args):
      print(
          "Comparing target dataset id {} with source dataset id {}".format(
              args.target, args.source
          )
      )
      print_args(args)
      ds = Dataset.get(dataset_id=args.target)
      removed_files = ds.list_removed_files(dataset_id=args.source)
      modified_files = ds.list_modified_files(dataset_id=args.source)
      added_files = ds.list_added_files(dataset_id=args.source)
      if args.verbose:
          print("Removed files:")
          print("\n".join(removed_files))
          print("\nModified files:")
          print("\n".join(modified_files))
          print("\nAdded files:")
          print("\n".join(added_files))
          print("")
      print(
          "Comparison summary: {} files removed, {} files modified, {} files added".format(
              len(removed_files), len(modified_files), len(added_files)
          )
      )
      return 0
  
imports: import json
  import os
  import shutil
  from argparse import ArgumentParser, HelpFormatter
  from functools import partial
  from typing import Sequence
  from pathlib2 import Path
  import clearml.backend_api.session
  from clearml.datasets import Dataset
  from clearml.version import __version__
label_desc: Use image node_id 14 for calling a global function with example usage: ds_compare(args) and returns: int