code: def ds_remove(args):
      print("Removing files/folder from dataset id {}".format(args.id))
      check_null_id(args)
      print_args(args)
      ds = Dataset.get(dataset_id=args.id)
      num_files = 0
      for file in args.files or []:
          num_files += ds.remove_files(
              dataset_path=file,
              recursive=not args.non_recursive,
              verbose=args.verbose,
          )
      message = "{} file{} removed".format(
          num_files, "s" if num_files != 1 else ""
      )
      print(message)
      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 18 for calling a global function with example usage: ds_remove(args) and returns: int