code: def _possibly_sorted(x):
      # Since not all sequences of items can be sorted and comparison
      # functions may raise arbitrary exceptions, return an unsorted
      # sequence in that case.
      try:
          return sorted(x)
      except Exception:
          return list(x)
  
file_path: catboost/contrib/deprecated/python/functools32/functools32/reprlib32.py
imports: import __builtin__
  from itertools import islice
label_desc: Use image node_id 2 for calling a global function with example usage: _possibly_sorted(x) and returns: sorted, list