code: def check_encoder_on_device(self, device):
      encoder = TimeSeriesEncoder(stop_after=10, device=device)
      series = [
          [1, 2, 3, 4, 5, 6],
          [2, 3, 4, 5, 6, 7],
          [3, 4, 5, 6, 7, 8],
          [4, 5, 6, 7, 8, 9],
      ]
      data = series * 5
      batch_size = 1
      encoder._epochs = 1
      encoder.prepare(
          pd.Series(data),
          pd.Series(data),
          feedback_hoop_function=lambda x: print(x),
          batch_size=batch_size,
      )
      self.assertEqual(
          list(encoder._encoder.parameters())[0].device.type, device
      )
  
file_path: lightwood/tests/unit_tests/encoder/time_series/test_timeseries_rnn.py
imports: import unittest
  import numpy
  import torch
  from lightwood.encoder.time_series.rnn import TimeSeriesEncoder
  from lightwood.encoder.helpers import MinMaxNormalizer, CatNormalizer
  import pandas
label_desc: Use image node_id 4 for calling the TestRnnEncoder obj's underlying member method code with example usage: obj.check_encoder_on_device(device) without return types