TypeError: (): incompatible function arguments

Hello,I am customizing process group backends using cpp extensions according to PyTorch Tutorials,Customize Process Group Backends Using Cpp Extensions — PyTorch Tutorials 2.0.1+cu117 documentation . But an error occurred . It seems to be type error, but I find the type is right. So how can I fix it? The following is the detailed error:

Blockquote

File “/opt/conda/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py”, line 895, in init_process_group
default_pg = _new_process_group_helper(
File “/opt/conda/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py”, line 1029, in _new_process_group_helper
backend_class = creator_fn(backend_prefix_store, group_rank, group_size, timeout)
TypeError: (): incompatible function arguments. The following argument types are supported:
1. (arg0: c10d::Store, arg1: int, arg2: int, arg3: datetime.timedelta) → c10d::Backend
Invoked with: <torch.distributed.distributed_c10d.PrefixStore object at 0x7fe1ead6def0>, 2, 4, datetime.timedelta(seconds=1800)