code: def test_encode(self):
      data = pd.Series(
          [self._create_timestamp() for _ in range(10_000)]
      )
      data[0] = np.nan
      enc = DatetimeEncoder()
      enc.prepare([])
      encoded_repr = enc.encode(data)
      assert not torch.isinf(encoded_repr).any()
      assert not torch.isnan(encoded_repr).any()
  
file_path: lightwood/tests/unit_tests/encoder/date/test_datetime.py
imports: import unittest
  from datetime import datetime
  import numpy
  import pandas
  import torch
  from lightwood.encoder.datetime.datetime import DatetimeEncoder
  from lightwood.encoder.datetime.datetime_sin_normalizer import DatetimeNormalizerEncoder
label_desc: Use image node_id 3 for calling the TestDatetimeEncoder obj's underlying member method code with example usage: obj.test_encode() without return types