code: def norm(array: np.ndarray) -> np.ndarray:
      """Calculates the norm over an array. It is used as the first step to map
      a hypercomplex number to a real-valued space.
  
      Args:
          array: A 2-dimensional input array.
  
      Returns:
          (np.ndarray): Norm calculated over the second axis, such as (2, 4) array shape
          will result in a norm (2, ) shape.
  
      """
  
      array_norm = np.linalg.norm(array, axis=1)
  
      return array_norm
  
imports: from functools import wraps
  from typing import Any, List, Tuple, Union
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: norm(array) and returns: array_norm