code: def _make_affine(coses, zooms, starts):
      R = np.column_stack(coses)
      Z = np.diag(zooms)
      affine = np.eye(4)
      affine[:3, :3] = np.dot(R, Z)
      affine[:3, 3] = np.dot(R, starts)
      return affine
  
imports: import os
  from os.path import join
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..None import Nifti1Image
  from ..None import load
  from ..optpkg import optional_package
  from .nibabel_data import get_nibabel_data, needs_nibabel_data
label_desc: Use image node_id 1 for calling a global function with example usage: _make_affine(coses, zooms, starts) and returns: affine