code: def l1_normalize(
      x: np.ndarray,
      /,
      *,
      axis: Optional[int] = None,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      if axis is None:
          norm = np.sum(np.abs(np.reshape(x, -1)))
          denorm = norm * np.ones_like(x)
      else:
          norm = np.sum(np.abs(x), axis=axis, keepdims=True)
          denorm = np.divide(norm, np.abs(x) + 1e-12)
      return np.divide(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 1 for calling a global function with example usage: l1_normalize() and returns: np