code: def check_valid_vector(point: Vector, name: str = "") -> None:
      """
      Check if a vector contains three components.
  
      Parameters
      ----------
      point : Iterable[float]
          Input vector to check. Must be an iterable with exactly three components.
      name : str, optional
          Name to use in the error messages. If not provided, "Vector" will be used.
  
      Raises
      ------
      TypeError
          If the input is not an iterable.
      ValueError
          If the input does not have exactly three components.
  
      """
      if not isinstance(point, (Sequence, np.ndarray)):
          raise TypeError(
              f"{name} must be a length three iterable of floats."
          )
      if len(point) != 3:
          if name == "":
              name = "Vector"
          raise ValueError(
              f"{name} must be a length three iterable of floats."
          )
      return None
  
imports: from collections.abc import Sequence
  import enum
  from functools import lru_cache
  import importlib
  import sys
  import threading
  import traceback
  from typing import Type, TypeVar, Union
  import warnings
  import numpy
  from .._typing_core import Vector
label_desc: Use image node_id 2 for calling a global function with example usage: check_valid_vector(point, name) and returns: None