code: def ds_search(args):
      print("Search datasets")
      print_args(args)
      datasets = Dataset.list_datasets(
          dataset_project=args.project or None,
          partial_name=args.name or None,
          tags=args.tags or None,
          ids=args.ids or None,
          only_completed=not args.not_only_completed,
          recursive_project_search=not args.non_recursive_project_search,
      )
      (
          projects_col_len,
          name_col_len,
          tags_col_len,
          created_col_len,
          id_col_len,
      ) = (16, 32, 19, 19, 32)
      for d in datasets:
          projects_col_len = max(projects_col_len, len(d["project"]))
          name_col_len = max(name_col_len, len(d["name"]))
          tags_col_len = max(
              tags_col_len, len(str(d["tags"] or [])[1:-1])
          )
          created_col_len = max(
              created_col_len, len(str(d["created"]).split(".")[0])
          )
          id_col_len = max(id_col_len, len(d["id"]))
      formatting = (
          "{:"
          + str(projects_col_len)
          + "} | {:"
          + str(name_col_len)
          + "} | {:"
          + str(tags_col_len)
          + "} | {:"
          + str(created_col_len)
          + "} | {:"
          + str(id_col_len)
          + "}"
      )
      print(
          formatting.format(
              "project", "name", "version", "tags", "created", "id"
          )
      )
      print("-" * len(formatting.format("-", "-", "-", "-", "-")))
      for d in datasets:
          print(
              formatting.format(
                  d["project"],
                  d["name"],
                  d["version"],
                  str(d["tags"] or [])[1:-1],
                  str(d["created"]).split(".")[0],
                  d["id"],
              )
          )
      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 13 for calling a global function with example usage: ds_search(args) and returns: int