code: def sorted_values(a):
      """
      Extract list of distinct sortedvalues from an array
      """
      if len(a) == 0:
          return []
      else:
          m = min(a)
          L = [m]
          L.extend(sorted_values(a[a > m]))
          return L
  
imports: import numpy
  import warnings
  from nipy.algorithms.graph import wgraph_from_3d_grid
  from nipy.algorithms.graph.field import Field, field_from_graph_and_data
  from ..utils import zscore
  from .onesample import stat
  from .onesample import stat_mfx
  from .twosample import stat
  from .twosample import stat_mfx
label_desc: Use image node_id 6 for calling a global function with example usage: sorted_values(a) and returns: list, L