code: def reduce_filename(f):
      r'''
      Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb
      Where XXX is a variation on the model size for example
      And where YYY is a const related to the training dataset
      '''
  
      f = os.path.basename(f).split('.')
      return keep_only_digits(f[-3]f reduce_filename(f):
      r'''
      Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb
      Where XXX is a variation on the model size for example
      And where YYY is a const related to the training dataset
      '''
  
      f = os.path.basename(f).split('.')
      return keep_only_digits(f[-3])
docs: r'''
      Expects something like /tmp/tmpAjry4Gdsbench/test.weights.e5.XXX.YYY.pb
      Where XXX is a variation on the model size for example
      And where YYY is a const related to the training dataset