class_docstr: Contains the compute environment. If not passed, will try to detect.
  
  Args:
      dist_env: The distributed environment (distributed worldsize and global rank)
      worker_env: The worker environment (number of workers, worker rank)
class_docstr_tok: ["Contains","the","compute","environment",".","If","not","passed",",","will","try","to","detect",".","Args",":","dist_env",":","The","distributed","environment","(","distributed","worldsize","and","global","rank",")","worker_env",":","The","worker","environment","(","number","of","workers",",","worker","rank",")"]
code: def __str__(self) -> str:
      return repr(self)
  
imports: from typing import Callable, Optional
  import torch
  from torch.utils.data import get_worker_info
label_desc: Use image node_id 6 for calling the Environment obj's underlying member method code with example usage: obj.__str__() and returns: repr