code: def setup(self, cores_per_node):
      import torch
  
      torch.set_num_threads(cores_per_node)
  
file_path: BigDL/python/orca/src/bigdl/orca/learn/pytorch/core/lifecycle.py
imports: from abc import abstractmethod, ABCMeta
  from torch.utils.data import DataLoader
  from torch.utils.data.distributed import DistributedSampler
label_desc: Use image node_id 1 for calling the LifeCycle obj's underlying member method code with example usage: obj.setup(cores_per_node) without return types