code: def _get_sort_key(self, x):
      data = []
      for idx, metric in enumerate(self.metrics.values()):
          if metric.lower_is_better:
              data += [x[0][idx]]
          else:
              data += [-x[0][idx]]
  
      data += [x[0][self.IDX_EPOCH]]
  
      return tuple(data)
  
file_path: small-text/small_text/integrations/pytorch/model_selection.py
imports: import logging
  from collections import OrderedDict
  from pathlib import Path
  from small_text.integrations.pytorch.exceptions import PytorchNotFoundError
  from small_text.utils.annotations import deprecated
label_desc: Use image node_id 5 for calling the PytorchModelSelection obj's underlying member method code with example usage: obj._get_sort_key(x) and returns: tuple