code: def testInfinityAndNan(self):
      examples = []
      for i in range(50):
          example = tf.train.Example()
          example.features.feature["num"].float_list.value.append(i)
          examples.append(example)
      example = tf.train.Example()
      example.features.feature["num"].float_list.value.append(
          float("inf")
      )
      examples.append(example)
      example = tf.train.Example()
      example.features.feature["num"].float_list.value.append(
          float("-inf")
      )
      examples.append(example)
      example = tf.train.Example()
      example.features.feature["num"].float_list.value.append(
          float("nan")
      )
      examples.append(example)
  
      entries = {}
      for i, example in enumerate(examples):
          self.fs._ParseExample(
              example.features.feature, [], entries, i
          )
  
      datasets = [
          {"entries": entries, "size": len(examples), "name": "test"}
      ]
      p = self.fs.GetDatasetsProto(datasets)
  
      numfeat = p.datasets[0].features[0]
  
      self.assertEqual("num", numfeat.name)
      self.assertEqual(self.fs.fs_proto.FLOAT, numfeat.type)
      self.assertTrue(np.isnan(numfeat.num_stats.min))
      self.assertTrue(np.isnan(numfeat.num_stats.max))
      self.assertTrue(np.isnan(numfeat.num_stats.mean))
      self.assertTrue(np.isnan(numfeat.num_stats.median))
      self.assertEqual(1, numfeat.num_stats.num_zeros)
      self.assertTrue(np.isnan(numfeat.num_stats.std_dev))
      self.assertEqual(
          53, numfeat.num_stats.common_stats.num_non_missing
      )
      hist = buckets = numfeat.num_stats.histograms[0]
      buckets = hist.buckets
      self.assertEqual(self.fs.histogram_proto.STANDARD, hist.type)
      self.assertEqual(1, hist.num_nan)
      self.assertEqual(10, len(buckets))
      self.assertEqual(float("-inf"), buckets[0].low_value)
      self.assertEqual(4.9, buckets[0].high_value)
      self.assertEqual(6, buckets[0].sample_count)
      self.assertEqual(44.1, buckets[9].low_value)
      self.assertEqual(float("inf"), buckets[9].high_value)
      self.assertEqual(6, buckets[9].sample_count)
  
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 15 for calling the FeatureStatisticsGeneratorTest obj's underlying member method code with example usage: obj.testInfinityAndNan() without return types