code: def testNdarrayToEntryTimeTypes(self):
      arr = np.array(
          [np.datetime64("2005-02-25"), np.datetime64("2006-02-25")],
          dtype=np.datetime64,
      )
      entry = self.gfsg.NdarrayToEntry(arr)
      self.assertEqual(
          [1109289600000000000, 1140825600000000000], entry["vals"]
      )
  
      arr = np.array(
          [np.datetime64("2009-01-01") - np.datetime64("2008-01-01")],
          dtype=np.timedelta64,
      )
      entry = self.gfsg.NdarrayToEntry(arr)
      self.assertEqual([31622400000000000], entry["vals"])
  
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 4 for calling the GenericFeatureStatisticsGeneratorTest obj's underlying member method code with example usage: obj.testNdarrayToEntryTimeTypes() without return types