code: def test_torch_batch_processor_context_to_device_sends_tensor_to_device(
      mock_get_default_device: unittest.mock.MagicMock,
      mock_pytorch_to_device: unittest.mock.MagicMock,
  ) -> None:
      mock_get_default_device.return_value = DEFAULT_DEVICE
  
      core_context = core._dummy_init(distributed=_get_dist_context())
      torch_batch_processor_context = (
          experimental.TorchBatchProcessorContext(
              core_context, DEFAULT_STORAGE_PATH
          )
      )
  
      tensor_1 = torch.zeros(4)
      torch_batch_processor_context.to_device(tensor_1)
  
      to_device_call_args = mock_pytorch_to_device.call_args[0]
      assert to_device_call_args[1] == DEFAULT_DEVICE
      assert torch.all(tensor_1.eq(to_device_call_args[0]))
  
imports: import math
  import unittest.mock
  from typing import Any, Dict, List, Optional
  import pytest
  import torch
  from torch.utils import data
  from determined import core, pytorch
  from determined.pytorch import experimental
  from tests.launch import test_util
label_desc: Use image node_id 13 for calling a global function with example usage: test_torch_batch_processor_context_to_device_sends_tensor_to_device(mock_get_default_device, mock_pytorch_to_device) without return types