code: def parse_delete_targets_argument_callback(
      ctx: Context,
      params: Parameter,
      value: t.Any,  # pylint: disable=unused-argument
  ) -> t.Any:
      if value is None:
          return value
      value = " ".join(value)
      if "," in value:
          delete_targets = value.split(",")
      else:
          delete_targets = value.split()
      delete_targets = list(map(str.strip, delete_targets))
      for delete_target in delete_targets:
          if not (
              is_valid_bento_tag(delete_target)
              or is_valid_bento_name(delete_target)
          ):
              raise click.BadParameter(
                  'Bad formatting. Please present a valid bento bundle name or "name:version" tag. For list of bento bundles, separate delete targets by ",", for example: "my_service:v1,my_service:v2,classifier"'
              )
      return delete_targets
  
file_path: BentoML/src/bentoml_cli/models.py
imports: from __future__ import annotations
  import json
  import typing
  import click
  import yaml
  from rich.syntax import Syntax
  from rich.table import Table
  from bentoml_cli.utils import BentoMLCommandGroup
  from bentoml_cli.utils import is_valid_bento_name
  from bentoml_cli.utils import is_valid_bento_tag
label_desc: Use image node_id 1 for calling a global function with example usage: parse_delete_targets_argument_callback(ctx, params, value) and returns: delete_targets, value