code: def testGetProtoMultipleDatasets(self):
      # Tests converting multiple datsets into the feature stats proto
      # including ensuring feature order is consistent in the protos.
      examples1 = []
      for i in range(2):
          example = tf.train.Example()
          example.features.feature["str"].bytes_list.value.append(
              b"one"
          )
          example.features.feature["num"].int64_list.value.append(0)
          examples1.append(example)
      examples2 = []
      example = tf.train.Example()
      example.features.feature["num"].int64_list.value.append(1)
      example.features.feature["str"].bytes_list.value.append(b"two")
      examples2.append(example)
  
      entries1 = {}
      for i, example1 in enumerate(examples1):
          self.fs._ParseExample(
              example1.features.feature, [], entries1, i
          )
      entries2 = {}
      for i, example2 in enumerate(examples2):
          self.fs._ParseExample(
              example2.features.feature, [], entries2, i
          )
  
      datasets = [
          {
              "entries": entries1,
              "size": len(examples1),
              "name": "test1",
          },
          {
              "entries": entries2,
              "size": len(examples2),
              "name": "test2",
          },
      ]
      p = self.fs.GetDatasetsProto(datasets)
  
      self.assertEqual(2, len(p.datasets))
      test_data_1 = p.datasets[0]
      self.assertEqual("test1", test_data_1.name)
      self.assertEqual(2, test_data_1.num_examples)
      num_feat_index = 0 if test_data_1.features[0].name == "num" else 1
      self.assertEqual(
          0, test_data_1.features[num_feat_index].num_stats.max
      )
      test_data_2 = p.datasets[1]
      self.assertEqual("test2", test_data_2.name)
      self.assertEqual(1, test_data_2.num_examples)
      self.assertEqual(
          1, test_data_2.features[num_feat_index].num_stats.max
      )
  
imports: from facets_overview.feature_statistics_generator import FeatureStatisticsGenerator
  import numpy
  import tensorflow
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 18 for calling the FeatureStatisticsGeneratorTest obj's underlying member method code with example usage: obj.testGetProtoMultipleDatasets() without return types