code: def norm(vec):
      # Return unit vector with same orientation as input vector
      return vec / np.sqrt(vec @ vec)
  
imports: import numpy
  import pytest
  from numpy import pi
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..None import eulerangles
  from ..None import quaternions
label_desc: Use image node_id 1 for calling a global function with example usage: norm(vec) and returns: unknown