 Added the timeout variable in training args to avoid socket timeouts in DDP calls
Overriding the default timeout defined by PyTorch in **torch.distributed.init_process_group** calls by introducing a timeout argument and prevents Socket Timeouts

Added a custom timeout argument in **src/transformers/training_args.py**. It can be used to override the timeout argument in the **init_process_group** function call to avoid socket timeouts for mapping or tokenizing huge datasets that may take a longer time.

The timeout variable is a **int** type and default value is set to **1800(s)** which is default value in torch.distributed.init_process_group fn. 

The timeout datatype used in torch.distributed.init_process_group is a **datetime.timedelta** object that expects this timeout variable.

# What does this PR do?

Fixes #18054 #17106

The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_18081). All of your documentation changes will be reflected on that endpoint.<|||||>Hey @dvlshah, thank you for your PR! Would this parameter need to be used on https://github.com/huggingface/transformers/blob/ac98a88fbc6377f93e8b7fbd244b0c3331bb82a0/src/transformers/training_args.py#L1310?

cc @sgugger <|||||>> Hey @dvlshah, thank you for your PR! Would this parameter need to be used on
> 
> https://github.com/huggingface/transformers/blob/ac98a88fbc6377f93e8b7fbd244b0c3331bb82a0/src/transformers/training_args.py#L1310
> 
> ?
> cc @sgugger

The idea is provide the option to use this parameter if they want in **torch.distributed.init_process_group(backend=self.xpu_backend, rank=rank, world_size=size)**  fn call.<|||||>Thanks, but I'm not sure I follow the PR: why add a new `TrainingArguments` if it's not used anywhere?<|||||>@sgugger I need to add the timeout var in the torch.distributed.init_process_group call. Forgot the push the change in the PR.<|||||>Hey @dvlshah, did you push the changes?<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.