code: def _xyz_order(map, affine):
      img = VolumeImg(map, affine=affine, world_space="mine")
      img = img.xyz_ordered(resample=True, copy=False)
      map = img.get_fdata()
      affine = img.affine
      return map, affine
  
imports: import matplotlib
  import matplotlib.pyplot
  import numpy
  from matplotlib import transforms
  from nipy.utils import is_iterable
  from ..datasets import VolumeImg
  from .None import cm
  from .coord_tools import coord_transform, find_cut_coords, get_bounds, get_mask_bounds
  from .edge_detect import _edge_map
label_desc: Use image node_id 1 for calling a global function with example usage: _xyz_order(map, affine) and returns: map,  affine