class_docstr: Manages a PyTorch model for training.
class_docstr_tok: ["Manages","a","PyTorch","model","for","training","."]
docstr: Attempts to shut down the worker.
docstr_tok: ["Attempts","to","shut","down","the","worker","."]
code: def shutdown(self):
      """Attempts to shut down the worker."""
      dist.destroy_process_group()
      super().shutdown()
  
file_path: BigDL/python/orca/src/bigdl/orca/learn/pytorch/pytorch_pyspark_worker.py
imports: from bigdl.orca.learn.pytorch.torch_runner import TorchRunner
  import torch.distributed
  import logging
  import os
  import tempfile
  import copy
  from pyspark import BarrierTaskContext, TaskContext
  from bigdl.orca.learn.utils import save_pkl, duplicate_stdout_stderr_to_file, get_rank, get_partition_id
  from bigdl.orca.learn.log_monitor import LogMonitor
label_desc: Use image node_id 7 for calling the PytorchPysparkWorker obj's underlying member method code with example usage: obj.shutdown() without return types