code: def check_encoder_on_device(self, device):
      priming_data, _ = self.create_test_data(
          nb_categories=8,
          nb_int_categories=3,
          max_category_size=3,
          test_data_rel_size=0.0,
      )
  
      enc = CategoricalAutoEncoder(stop_after=5, device=device)
      enc.prepare(pd.Series(priming_data), pd.Series(priming_data))
      self.assertEqual(
          list(enc.net.parameters())[0].device.type, device
      )
  
file_path: lightwood/tests/unit_tests/encoder/categorical/test_autoencoder.py
imports: import unittest
  from lightwood.encoder.categorical import CategoricalAutoEncoder
  import string
  import random
  import logging
  import numpy
  import pandas
  from sklearn.metrics import accuracy_score
  import torch
  from lightwood.helpers.log import log
label_desc: Use image node_id 4 for calling the TestAutoencoder obj's underlying member method code with example usage: obj.check_encoder_on_device(device) without return types