code: def _check_vars_on_device(self, v, desired_device):
      for var_name, var in vars(v).items():
          if var_name != "device":
              if var is not None:
                  self.assertTrue(
                      var.device.type == desired_device.type,
                      (var_name, var.device, desired_device),
                  )
          else:
              self.assertTrue(var.type == desired_device.type)
  
imports: import copy
  import itertools
  import random
  import unittest
  import numpy
  import torch
  from pytorch3d.structures.volumes import VolumeLocator, Volumes
  from pytorch3d.transforms import Scale
  from .common_testing import TestCaseMixin
label_desc: Use image node_id 11 for calling the TestVolumes obj's underlying member method code with example usage: obj._check_vars_on_device(v, desired_device) without return types