code: def run_test_encoder_on_device(self, device):
      enc = Img2VecEncoder(device=device)
      enc.prepare([], [])
      self.assertEqual(enc.model.device, torch.device(device))
      self.assertEqual(
          list(enc.model.parameters())[0].device.type, device
      )
  
file_path: lightwood/tests/unit_tests/encoder/images/test_img_2_vec.py
imports: import unittest
  import torch
  from torch import Tensor
  from lightwood.encoder.image import Img2VecEncoder
  import os
label_desc: Use image node_id 2 for calling the TestImg2VecEncoder obj's underlying member method code with example usage: obj.run_test_encoder_on_device(device) without return types