code: def _validate_label_name(name: str) -> None:
      if not isinstance(name, str):
          raise TypeError("label must be a string")
      if not name:
          raise ValueError("label cannot be empty")
      if "/" in name:
          raise ValueError(
              "label cannot contain slash (`/`). Please use `label_scope` to build hierarchical labels."
          )
  
imports: from __future__ import annotations
  import logging
  from collections import defaultdict
  from typing import Any, List, cast
label_desc: Use image node_id 5 for calling a global function with example usage: _validate_label_name(name) without return types