code: def make_name(estimator):
      """Helper function that returns the name of estimator or the given string
      if a string is given
      """
      if estimator is not None:
          if isinstance(estimator, str):
              estimator_name = estimator
          else:
              estimator_name = estimator.__class__.__name__
      else:
          estimator_name = None
      return estimator_name
  
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 8 for calling a global function with example usage: make_name(estimator) and returns: estimator_name