code: def _affine_transform(kwargs):
      with warnings.catch_warnings():
          warnings.filterwarnings(
              "ignore", message=".*scipy.*18.*", category=UserWarning
          )
          return affine_transform(**kwargs)
  
imports: from multiprocessing import Pool
  import warnings
  import numpy
  from scipy.ndimage import affine_transform
  from dipy.utils.multiproc import determine_num_processes
label_desc: Use image node_id 1 for calling a global function with example usage: _affine_transform(kwargs) and returns: affine_transform