code: def preprocess_points(points, preprocessor):
      """form points if there is a preprocessor else keep them as such (assumes
      that check_points has already been called)"""
      try:
          points = preprocessor(points)
      except Exception as e:
          raise PreprocessorError(e)
      return points
  
imports: import numpy
  from numpy.linalg import LinAlgError
  from sklearn.datasets import make_spd_matrix
  from sklearn.decomposition import PCA
  from sklearn.utils import check_array
  from sklearn.utils.validation import check_X_y, check_random_state
  from .exceptions import PreprocessorError, NonPSDError
  from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
  from scipy.linalg import pinvh, eigh
  import sys
  import time
  import warnings
label_desc: Use image node_id 6 for calling a global function with example usage: preprocess_points(points, preprocessor) and returns: points