code: def _validate_name(_: t.Any, attr: attr.Attribute[str], value: str):
      try:
          validate_tag_str(value)
      except ValueError as e:
          # TODO: link to tag validation documentation
          raise ValueError(
              f"Runner name '{value}' is not valid; it must be a valid BentoML Tag name."
          ) from e
  
imports: from __future__ import annotations
  import logging
  import typing
  from abc import ABC
  from abc import abstractmethod
  import attr
  from simple_di import Provide
  from simple_di import inject
  from ...exceptions import StateException
  from ..configuration.containers import BentoMLContainer
  from ..models.model import Model
  from ..tag import validate_tag_str
  from ..utils import first_not_none
  from .runnable import Runnable
  from .runner_handle import DummyRunnerHandle
  from .runner_handle import RunnerHandle
  from .strategy import DefaultStrategy
  from .strategy import Strategy
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_name(_, attr, value) without return types