code: def __init__(
      self,
      normalization_scheme_per_modality,
      use_nonzero_mask,
      transpose_forward: (tuple, list),
      intensityproperties=None,
  ):
      self.transpose_forward = transpose_forward
      self.intensityproperties = intensityproperties
      self.normalization_scheme_per_modality = (
          normalization_scheme_per_modality
      )
      self.use_nonzero_mask = use_nonzero_mask
  
      self.resample_separate_z_anisotropy_threshold = 3
  
imports: import pickle
  import os
  import numpy
  from collections import OrderedDict
  from scipy.ndimage.interpolation import map_coordinates
  from multiprocessing.pool import Pool
  from skimage.transform import resize
  from .image_crop import get_case_identifier_from_npz, ImageCropper
  from .path_utils import join_paths
label_desc: Use image node_id 1 to create a new GenericPreprocessor object  with example: obj = GenericPreprocessor(normalization_scheme_per_modality, use_nonzero_mask, transpose_forward, intensityproperties)