code: def DtypeToNumberConverter(self, dtype):
      
      if np.issubdtype(dtype, np.datetime64):
  
        def DatetimesToNumbers(dt_list):
          return np.array([pd.Timestamp(dt).value for dt in dt_list])
  
        return DatetimesToNumbers
      elif np.issubdtype(dtype, np.timedelta64):
  
        def TimedetlasToNumbers(td_list):
          return np.array([pd.Timedelta(td).value for td in td_list])
  
        return TimedetlasToNumbers
      else:
        return None
docs: Converts a Numpy dtype to a converter method if applicable.
        The converter method takes in a numpy array of objects of the provided
        dtype
        and returns a numpy array of the numbers backing that object for
        statistical
        analysis. Returns None if no converter is necessary.
      Args:
        dtype: The numpy dtype to make a converter for.
      Returns:
        The converter method or None.