code: def ds_delete(args):
      if args.id:
          print("Deleting dataset id {}".format(args.id))
      else:
          print(
              "Deleting dataset with project={}, name={}, version={}".format(
                  args.project, args.name, args.version
              )
          )
      print_args(args)
      Dataset.delete(
          dataset_id=args.id,
          dataset_project=args.project,
          dataset_name=args.name,
          dataset_version=args.version,
          entire_dataset=args.entire_dataset,
          force=args.force,
      )
      print("Dataset(s) deleted")
      clear_state()
      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 6 for calling a global function with example usage: ds_delete(args) and returns: int