code: def normalized_vector(vec, axis=-1):
      """Return vector divided by its Euclidean (L2) norm
  
      See :term:`unit vector` and :term:`Euclidean norm`
  
      Parameters
      ----------
      vec : array_like shape (3,)
  
      Returns
      -------
      nvec : array shape (3,)
         vector divided by L2 norm
  
      Examples
      --------
      >>> vec = [1, 2, 3]
      >>> l2n = np.sqrt(np.dot(vec, vec))
      >>> nvec = normalized_vector(vec)
      >>> np.allclose(np.array(vec) / l2n, nvec)
      True
      >>> vec = np.array([[1, 2, 3]])
      >>> vec.shape == (1, 3)
      True
      >>> normalized_vector(vec).shape == (1, 3)
      True
  
      """
      return vec / vector_norm(vec, axis, keepdims=True)
  
imports: import itertools
  import math
  import numpy
  import numpy.linalg
label_desc: Use image node_id 4 for calling a global function with example usage: normalized_vector(vec, axis) and returns: unknown