code: def test_torch_batch_processor_context_upload_path_sets_use_default_storage(
      mock_get_default_device: unittest.mock.MagicMock,
  ) -> None:
      mock_get_default_device.return_value = DEFAULT_DEVICE
  
      # Mock core context to test num times called of _storage_manager
      core_context = _get_core_context()
      torch_batch_processor_context = (
          experimental.TorchBatchProcessorContext(
              core_context, DEFAULT_STORAGE_PATH
          )
      )
  
      assert torch_batch_processor_context._use_default_storage is False
      torch_batch_processor_context.upload_path()
  
      core_context.checkpoint._storage_manager.store_path.assert_called_once_with(
          DEFAULT_STORAGE_PATH
      )
      assert torch_batch_processor_context._use_default_storage is True
  
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 16 for calling a global function with example usage: test_torch_batch_processor_context_upload_path_sets_use_default_storage(mock_get_default_device) without return types