code: def _elementary_quat_compose(seq, angles, intrinsic=False):
      result = _make_elementary_quat(seq[0], angles[:, 0])
  
      for idx, axis in enumerate(seq[1:], start=1):
          if intrinsic:
              result = _compose_quat(
                  result, _make_elementary_quat(axis, angles[:, idx])
              )
          else:
              result = _compose_quat(
                  _make_elementary_quat(axis, angles[:, idx]), result
              )
      return result
  
imports: from __future__ import division, print_function, absolute_import
  import re
  import warnings
  import numpy
  import scipy.linalg
  from scipy._lib._util import check_random_state
label_desc: Use image node_id 5 for calling a global function with example usage: _elementary_quat_compose(seq, angles, intrinsic) and returns: result