code: def _validate_path(path):
      """Sorts path values from largest to smallest.
  
      Will warn if path parameter was not already sorted.
      """
      if path is None:
          return None
  
      new_path = np.array(sorted(set(path), reverse=True))
      if new_path[0] != path[0]:
          print("Warning: Path must be sorted largest to smallest.")
  
      return new_path
  
file_path: skggm/inverse_covariance/inverse_covariance.py
imports: from __future__ import absolute_import
  import numpy
  from sklearn.base import BaseEstimator
  from .None import metrics
  from .rank_correlation import spearman_correlation, kendalltau_correlation
label_desc: Use image node_id 3 for calling a global function with example usage: _validate_path(path) and returns: new_path, None