code: def norm(vec):
      """Compute the (standard l2) norm of a vector.
  
      Parameters
      ----------
      vec: array of shape (dim,)
  
      Returns
      -------
      The l2 norm of vec.
      """
      result = 0.0
      dim = vec.shape[0]
      for i in range(dim):
          result += vec[i] * vec[i]
      return np.sqrt(result)
  
imports: import time
  import numba
  from numba.core import types
  import numba.experimental.structref
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: norm(vec) and returns: np