code: def l2_norm(arr):
      
      arr = np.asarray(arr)
      return np.sqrt(np.dot(arr.ravel().squeeze(), arr.ravel().squeeze()))
docs: The l2 norm of an array is is defined as: sqrt(||x||), where ||x|| is the
      dot product of the vector.