code: def make_context(estimator):
      """Helper function to create a string with the estimator name.
      Taken from check_array function in scikit-learn.
      Will return the following for instance:
      NCA: ' by NCA'
      'NCA': ' by NCA'
      None: ''
      """
      estimator_name = make_name(estimator)
      context = (
          (" by " + estimator_name)
          if estimator_name is not None
          else ""
      )
      return context
  
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 7 for calling a global function with example usage: make_context(estimator) and returns: context