code: def normalize_array(q):
          
          assert(len(q) == 4)
          q = np.array(q)
          n = QuaternionBase.norm_array(q)
          return q / n
docs: Normalizes the list with len 4 so that it can be used as quaternion
          :param q: array of len 4
          :returns: normalized array