code: def l2_normalize(
      x: np.ndarray,
      /,
      *,
      axis: Optional[int] = None,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      if axis is None:
          denorm = np.linalg.norm(x.flatten(), 2, axis)
      else:
          denorm = np.linalg.norm(x, 2, axis, keepdims=True)
      denorm = np.maximum(denorm, 1e-12)
      return x / denorm
  
imports: import numpy
  from typing import Optional
  from ivy.func_wrapper import with_unsupported_dtypes
  from .None import backend_version
label_desc: Use image node_id 2 for calling a global function with example usage: l2_normalize() and returns: unknown