code: def testGetDatasetsProtoWithWhitelist(self):
      entries = {}
      entries["testFeature"] = {
          "vals": [1, 2, 3],
          "counts": [1, 1, 1],
          "missing": 0,
          "type": self.gfsg.fs_proto.INT,
      }
      entries["ignoreFeature"] = {
          "vals": [5, 6],
          "counts": [1, 1],
          "missing": 1,
          "type": self.gfsg.fs_proto.INT,
      }
      datasets = [
          {"entries": entries, "size": 3, "name": "testDataset"}
      ]
      p = self.gfsg.GetDatasetsProto(datasets, features=["testFeature"])
  
      self.assertEqual(1, len(p.datasets))
      test_data = p.datasets[0]
      self.assertEqual("testDataset", test_data.name)
      self.assertEqual(3, test_data.num_examples)
      self.assertEqual(1, len(test_data.features))
      numfeat = test_data.features[0]
      self.assertEqual("testFeature", numfeat.name)
      self.assertEqual(1, numfeat.num_stats.min)
  
file_path: facets/facets_overview/facets_overview/generic_feature_statistics_generator_test.py
imports: from facets_overview.generic_feature_statistics_generator import GenericFeatureStatisticsGenerator
  import numpy
  import pandas
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 8 for calling the GenericFeatureStatisticsGeneratorTest obj's underlying member method code with example usage: obj.testGetDatasetsProtoWithWhitelist() without return types