code: def test_sort_eligible_features(self):
      features_list = [{"name": "feat1"}, {"name": "feat2"}]
      chart_data = {
          "feat1": {
              "chartType": "numeric",
              "data": [
                  [
                      {
                          "series1": [
                              {"scalar": 0.2},
                              {"scalar": 0.1},
                              {"scalar": 0.3},
                          ]
                      },
                      {
                          "series2": [
                              {"scalar": 0.2},
                              {"scalar": 0.1},
                              {"scalar": 0.4},
                          ]
                      },
                  ]
              ],
          },
          "feat2": {
              "chartType": "categorical",
              "data": [
                  [
                      {
                          "series1": [
                              {"scalar": 0.2},
                              {"scalar": 0.1},
                              {"scalar": 0.3},
                          ]
                      },
                      {
                          "series2": [
                              {"scalar": 0.2},
                              {"scalar": 0.1},
                              {"scalar": 0.9},
                          ]
                      },
                  ]
              ],
          },
      }
      sorted_list = inference_utils.sort_eligible_features(
          features_list, chart_data
      )
      print(sorted_list)
      self.assertEqual("feat2", sorted_list[0]["name"])
      self.assertEqual(0.8, sorted_list[0]["interestingness"])
      self.assertEqual("feat1", sorted_list[1]["name"])
      self.assertEqual(0.4, sorted_list[1]["interestingness"])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import numpy
  import tensorflow
  from tensorflow_serving.apis import classification_pb2
  from tensorflow_serving.apis import predict_pb2
  from tensorflow_serving.apis import regression_pb2
  from utils import common_utils
  from utils import inference_utils
  from utils import platform_utils
  from utils import test_utils
label_desc: Use image node_id 24 for calling the InferenceUtilsTest obj's underlying member method code with example usage: obj.test_sort_eligible_features() without return types