code: def test_remote_module_py_pickle_not_supported(self):
      if self.rank != 0:
          return
      dst_worker_name = dist_utils.worker_name(
          (self.rank + 1) % self.world_size
      )
  
      for remote_module in self._create_remote_module_iter(
          dst_worker_name, modes=[ModuleCreationMode.MODULE_CTOR]
      ):
          with TemporaryFileName() as fname:
              with self.assertRaisesRegex(
                  RuntimeError,
                  "Cannot pickle RemoteModule in python pickler. RemoteModule can only be pickled when using RPC",
              ):
                  torch.save(remote_module, fname)
  
imports: import enum
  from typing import Tuple
  import torch
  import torch.distributed.rpc
  import torch.testing._internal.dist_utils
  from torch import Tensor, nn
  from torch._jit_internal import Future
  from torch.distributed.nn import RemoteModule
  from torch.distributed.nn.api.remote_module import _REMOTE_MODULE_PICKLED_ATTRIBUTES
  from torch.distributed.nn.api.remote_module import _RemoteModule
  from torch.testing._internal.common_distributed import skip_if_lt_x_gpu
  from torch.testing._internal.common_utils import TemporaryFileName
  from torch.testing._internal.distributed.rpc.rpc_agent_test_fixture import RpcAgentTestFixture
label_desc: Use image node_id 12 for calling the RemoteModuleTest obj's underlying member method code with example usage: obj.test_remote_module_py_pickle_not_supported() without return types