code: def _get_context(estimator=None):
      """Get context name for warning messages."""
      if estimator is not None:
          if isinstance(estimator, six.string_types):
              estimator_name = estimator.lower()
          else:
              estimator_name = estimator.__class__.__name__.lower()
  
          estimator_name = "[%s] " % estimator_name
      else:
          estimator_name = ""
  
      return estimator_name
  
imports: import warnings
  from .exceptions import NotFittedError, LayerSpecificationWarning, LayerSpecificationError, ParallelProcessingError, ParallelProcessingWarning
label_desc: Use image node_id 1 for calling a global function with example usage: _get_context(estimator) and returns: estimator_name