code: def is_xyz_space(obj):
      """True if `obj` appears to be an XYZ space definition"""
      return (
          hasattr(obj, "x")
          and hasattr(obj, "y")
          and hasattr(obj, "z")
          and hasattr(obj, "to_coordsys_maker")
      )
  
imports: import numpy
  from nibabel import io_orientation
  from nibabel.affines import from_matvec
  from .coordinate_map import CoordMapMaker
  from .coordinate_system import CoordSysMaker, is_coordsys, is_coordsys_maker
label_desc: Use image node_id 5 for calling a global function with example usage: is_xyz_space(obj) and returns: unknown