code: def __init__(self, config):
      self.config = config
  
file_path: mmf/tests/trainers/test_device.py
imports: import unittest
  import torch
  from mmf.trainers.core.device import TrainerDeviceMixin
  from mmf.utils.general import get_current_device
  from omegaconf import OmegaConf
label_desc: Use image node_id 1 to create a new DeviceMock object from inherited base classes: TrainerDeviceMixin with example: obj = DeviceMock(config)