Repository: pytorch
Issue: Fix docstring errors in checkpoint_example.py, basic_strategy.py, op_schema.py, contract.py, redistribute.py, __init__.py, api.py, device_mesh.py, _utils.py, sharding_prop.py, random.py, checkpoint_activation.py, placement_types.py, fully_shard.py, parallel_mode.py, replicate.py
Labels: module: docs,triaged,medium,docathon-h2-2023

Please fix the following issues.
First, make sure to install the required tools:
```
pip3 install pydocstyle
```
```
pip3 install ruff
```
Then complete the followings steps:
 1. Run `pydocstyle` to see the number of errors in the file: 
 ```
pydocstyle path-to-file --count
```
 &nbsp; &nbsp; This command prints out the number of errors at the end of the output. Save this output to later add it to your PR description.
2. Next, run `ruff` which should help autofix many of these errors:
```
ruff --select RULECODE --fix path_to_file
```
&nbsp; &nbsp; `RULECODE` is the error code from the output in the issue, for example, **D200**. See the complete list of rules and autofixes [here](https://docs.astral.sh/ruff/rules/#pydocstyle-d).
3. You can run the above command with the `--unsafe-fixes` option. Double-check that the applied fixes are correct.
4. Fix the remaining issues. Fix **only** the errors listed in the issue. Skip the 'Missing docstrings' errors.
5. Run pydocstyle again:
```
pydocstyle path-to-file --count
```
This **number might not be 0** which is **OK**. Add the count of fixed errors to your PR description. 
- **Error Code**: **D205**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `ParallelMode`, **Line**: 19, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `ParallelMode`, **Line**: 19, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `transform_and_compile`, **Line**: 46, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `transform_and_compile`, **Line**: 46, **Description**: First line should end with a period (not 'h')
- **Error Code**: **D205**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `__init__`, **Line**: 67, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `__init__`, **Line**: 67, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D403**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `__init__`, **Line**: 67, **Description**: First word of the first line should be properly capitalized ('Dataparallel', not 'DataParallel')
- **Error Code**: **D400**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `transform_and_compile`, **Line**: 131, **Description**: First line should end with a period (not 's')
- **Error Code**: **D403**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `transform_and_compile`, **Line**: 131, **Description**: First word of the first line should be properly capitalized ('Optimize', not 'optimize')
- **Error Code**: **D205**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `DTensorExpandMode`, **Line**: 137, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `DTensorExpandMode`, **Line**: 137, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `transform_and_compile`, **Line**: 211, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_spmd/parallel_mode.py`, **Entity**: `transform_and_compile`, **Line**: 211, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D202**, **File**: `torch/distributed/_composable/contract.py`, **Entity**: `contract`, **Line**: 33, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/_composable/contract.py`, **Entity**: `contract`, **Line**: 33, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_composable/contract.py`, **Entity**: `contract`, **Line**: 33, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_composable/contract.py`, **Entity**: `_get_registry`, **Line**: 195, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_composable/contract.py`, **Entity**: `_get_registry`, **Line**: 195, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D200**, **File**: `torch/distributed/_composable/fully_shard.py`, **Entity**: `fully_shard`, **Line**: 54, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D401**, **File**: `torch/distributed/_composable/fully_shard.py`, **Entity**: `fully_shard`, **Line**: 54, **Description**: First line should be in imperative mood (perhaps 'Apply', not 'Applies')
- **Error Code**: **D400**, **File**: `torch/distributed/_composable/replicate.py`, **Entity**: `replicate`, **Line**: 20, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/_composable/checkpoint_activation.py`, **Entity**: `_no_hook`, **Line**: 15, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_composable/checkpoint_activation.py`, **Entity**: `_no_hook`, **Line**: 15, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D205**, **File**: `torch/distributed/_composable/checkpoint_activation.py`, **Entity**: `checkpoint`, **Line**: 180, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_composable/checkpoint_activation.py`, **Entity**: `checkpoint`, **Line**: 180, **Description**: First line should end with a period (not 'l')
- **Error Code**: **D401**, **File**: `torch/distributed/_composable/checkpoint_activation.py`, **Entity**: `checkpoint`, **Line**: 180, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `_rebuild_tensor_from_dtensor_meta`, **Line**: 18, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D210**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `_rebuild_tensor_from_dtensor_meta`, **Line**: 18, **Description**: No whitespaces allowed surrounding docstring text
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `_rebuild_tensor_from_dtensor_meta`, **Line**: 18, **Description**: First line should end with a period (not '"')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `PlacementStrategy`, **Line**: 32, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `PlacementStrategy`, **Line**: 32, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `StrategyType`, **Line**: 58, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `StrategyType`, **Line**: 58, **Description**: First line should end with a period (not '
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `OpStrategy`, **Line**: 67, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `OpStrategy`, **Line**: 67, **Description**: First line should end with a period (not 'p')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `max_num_shards`, **Line**: 80, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `max_num_shards`, **Line**: 80, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `max_num_shards`, **Line**: 80, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `TupleStrategy`, **Line**: 87, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `TupleStrategy`, **Line**: 87, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `OpSchema`, **Line**: 113, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `OpSchema`, **Line**: 113, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `args_spec`, **Line**: 163, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `args_spec`, **Line**: 163, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `gen_fake_args`, **Line**: 194, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `gen_fake_args`, **Line**: 194, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `gen_fake_kwargs`, **Line**: 204, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `gen_fake_kwargs`, **Line**: 204, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `OutputSharding`, **Line**: 229, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/op_schema.py`, **Entity**: `OutputSharding`, **Line**: 229, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/redistribute.py`, **Entity**: `_replicate_then_shard`, **Line**: 19, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/redistribute.py`, **Entity**: `_decompose_reshard`, **Line**: 33, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/redistribute.py`, **Entity**: `_decompose_reshard`, **Line**: 33, **Description**: First line should end with a period (not 'j')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `register_sharding_prop_rule`, **Line**: 37, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `register_op_strategy`, **Line**: 47, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `prepare_op_schema`, **Line**: 55, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `prepare_op_schema`, **Line**: 55, **Description**: First line should end with a period (not 'm')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `prepare_op_schema`, **Line**: 55, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `_wrap_output_spec_meta`, **Line**: 149, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `propagate_op_sharding`, **Line**: 164, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `_CachingPropagator`, **Line**: 260, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/sharding_prop.py`, **Entity**: `propagate`, **Line**: 275, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/_utils.py`, **Entity**: `compute_local_shape`, **Line**: 17, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/_utils.py`, **Entity**: `compute_local_shape`, **Line**: 17, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/_utils.py`, **Entity**: `compute_local_offset`, **Line**: 48, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/_utils.py`, **Entity**: `compute_local_offset`, **Line**: 48, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/_utils.py`, **Entity**: `compute_global_tensor_info`, **Line**: 83, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `ones`, **Line**: 85, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `ones`, **Line**: 85, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `ones`, **Line**: 85, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `empty`, **Line**: 128, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `empty`, **Line**: 128, **Description**: First line should end with a period (not '`')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `empty`, **Line**: 128, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `full`, **Line**: 173, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `full`, **Line**: 173, **Description**: First line should end with a period (not 'h')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `full`, **Line**: 173, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/__init__.py`, **Entity**: `zeros`, **Line**: 218, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `__new__`, **Line**: 162, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `__new__`, **Line**: 162, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `from_local`, **Line**: 242, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `from_local`, **Line**: 242, **Description**: First line should end with a period (not 'k')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `to_local`, **Line**: 292, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `to_local`, **Line**: 292, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `redistribute`, **Line**: 310, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `redistribute`, **Line**: 310, **Description**: First line should end with a period (not 't')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `placements`, **Line**: 359, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `placements`, **Line**: 359, **Description**: First line should end with a period (not 's')
- **Error Code**: **D202**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_tensor`, **Line**: 373, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_tensor`, **Line**: 373, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_tensor`, **Line**: 373, **Description**: First line should end with a period (not '`')
- **Error Code**: **D202**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_module`, **Line**: 467, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_module`, **Line**: 467, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_module`, **Line**: 467, **Description**: First line should end with a period (not 's')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/api.py`, **Entity**: `distribute_module`, **Line**: 467, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `_get_device_handle`, **Line**: 55, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `DeviceMesh`, **Line**: 65, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `DeviceMesh`, **Line**: 65, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `get_coordinate`, **Line**: 272, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `get_coordinate`, **Line**: 272, **Description**: First line should end with a period (not 'l')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `scatter`, **Line**: 285, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `scatter`, **Line**: 285, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `scatter`, **Line**: 285, **Description**: First word of the first line should be properly capitalized ('Scatter', not 'scatter')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `broadcast`, **Line**: 341, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `broadcast`, **Line**: 341, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `broadcast`, **Line**: 341, **Description**: First word of the first line should be properly capitalized ('Broadcast', not 'broadcast')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `all_gather`, **Line**: 378, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `all_gather`, **Line**: 378, **Description**: First line should end with a period (not 'a')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `all_reduce`, **Line**: 402, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `all_reduce`, **Line**: 402, **Description**: First line should end with a period (not 'd')
- **Error Code**: **D202**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `reduce_scatter`, **Line**: 425, **Description**: No blank lines allowed after function docstring (found 1)
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `reduce_scatter`, **Line**: 425, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `reduce_scatter`, **Line**: 425, **Description**: First line should end with a period (not 'r')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/device_mesh.py`, **Entity**: `reduce_scatter`, **Line**: 425, **Description**: First word of the first line should be properly capitalized ('Reduce', not 'reduce')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_split_tensor`, **Line**: 43, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_split_tensor`, **Line**: 43, **Description**: First line should end with a period (not 'g')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_split_tensor`, **Line**: 43, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_local_shard_size_on_dim`, **Line**: 121, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_local_shard_size_on_dim`, **Line**: 121, **Description**: First line should end with a period (not 'm')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_local_shard_size_on_dim`, **Line**: 121, **Description**: First line should be in imperative mood (perhaps 'Return', not 'returns')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_local_shard_size_on_dim`, **Line**: 121, **Description**: First word of the first line should be properly capitalized ('Returns', not 'returns')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_shard_tensor`, **Line**: 152, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_shard_tensor`, **Line**: 152, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_shard_tensor`, **Line**: 152, **Description**: First word of the first line should be properly capitalized ('Shard', not 'shard')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_reduce_shard_tensor`, **Line**: 183, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_reduce_shard_tensor`, **Line**: 183, **Description**: First line should end with a period (not 'n')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_reduce_shard_tensor`, **Line**: 183, **Description**: First word of the first line should be properly capitalized ('Reduce', not 'reduce')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_to_replicate_tensor`, **Line**: 216, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_to_replicate_tensor`, **Line**: 216, **Description**: First line should end with a period (not 't')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_to_replicate_tensor`, **Line**: 216, **Description**: First line should be in imperative mood; try rephrasing (found 'This')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 267, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 267, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 267, **Description**: First word of the first line should be properly capitalized ('Machine', not 'machine')
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 273, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 273, **Description**: First word of the first line should be properly capitalized ('Human', not 'human')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 289, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 289, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 289, **Description**: First word of the first line should be properly capitalized ('Machine', not 'machine')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 295, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 295, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 295, **Description**: First word of the first line should be properly capitalized ('Human', not 'human')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_replicate_tensor`, **Line**: 303, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `_replicate_tensor`, **Line**: 303, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 354, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 354, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__repr__`, **Line**: 354, **Description**: First word of the first line should be properly capitalized ('Machine', not 'machine')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 360, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 360, **Description**: First line should end with a period (not 't')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `__str__`, **Line**: 360, **Description**: First word of the first line should be properly capitalized ('Human', not 'human')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `dim_map`, **Line**: 415, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `dim_map`, **Line**: 415, **Description**: First line should end with a period (not 'f')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `sums`, **Line**: 452, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `sums`, **Line**: 452, **Description**: First line should end with a period (not 'e')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/placement_types.py`, **Entity**: `sums`, **Line**: 452, **Description**: First word of the first line should be properly capitalized ('Sums', not 'sums')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `set_rng_state`, **Line**: 15, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `get_rng_state`, **Line**: 45, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `get_rng_state`, **Line**: 45, **Description**: First line should end with a period (not 'a')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `get_rng_state`, **Line**: 45, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `manual_seed`, **Line**: 72, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `set_pre_op_offset`, **Line**: 115, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `set_pre_op_offset`, **Line**: 115, **Description**: First line should end with a period (not 'l')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `set_post_op_offset`, **Line**: 202, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `set_post_op_offset`, **Line**: 202, **Description**: First line should end with a period (not 'y')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `set_post_op_offset`, **Line**: 202, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `_get_rng_offset`, **Line**: 224, **Description**: First line should be in imperative mood (perhaps 'Return', not 'Returns')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/random.py`, **Entity**: `_set_rng_offset`, **Line**: 252, **Description**: First line should be in imperative mood (perhaps 'Set', not 'Sets')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: ``, **Line**: 1, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: ``, **Line**: 1, **Description**: First line should end with a period (not 's')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_tensor_parallel_model`, **Line**: 40, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_tensor_parallel_model`, **Line**: 40, **Description**: First line should end with a period (not 'l')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_tensor_parallel_model`, **Line**: 40, **Description**: First line should be in imperative mood (perhaps 'Generate', not 'generates')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_tensor_parallel_model`, **Line**: 40, **Description**: First word of the first line should be properly capitalized ('Generates', not 'generates')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_partial_replicate_2d`, **Line**: 53, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_partial_replicate_2d`, **Line**: 53, **Description**: First line should end with a period (not 'h')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_partial_replicate_2d`, **Line**: 53, **Description**: First line should be in imperative mood (perhaps 'Generate', not 'generates')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_partial_replicate_2d`, **Line**: 53, **Description**: First word of the first line should be properly capitalized ('Generates', not 'generates')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_model_param_in_submesh`, **Line**: 96, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_model_param_in_submesh`, **Line**: 96, **Description**: First line should end with a period (not 'a')
- **Error Code**: **D401**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_model_param_in_submesh`, **Line**: 96, **Description**: First line should be in imperative mood (perhaps 'Generate', not 'generates')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `gen_model_param_in_submesh`, **Line**: 96, **Description**: First word of the first line should be properly capitalized ('Generates', not 'generates')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `checkpoint`, **Line**: 137, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `checkpoint`, **Line**: 137, **Description**: First line should end with a period (not 's')
- **Error Code**: **D403**, **File**: `torch/distributed/_tensor/examples/checkpoint_example.py`, **Entity**: `checkpoint`, **Line**: 137, **Description**: First word of the first line should be properly capitalized ('Checkpoint', not 'checkpoint')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/ops/basic_strategy.py`, **Entity**: `parse_equation`, **Line**: 27, **Description**: One-line docstring should fit on one line with quotes (found 3)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/ops/basic_strategy.py`, **Entity**: `parse_equation`, **Line**: 27, **Description**: First line should end with a period (not 'r')
- **Error Code**: **D205**, **File**: `torch/distributed/_tensor/ops/basic_strategy.py`, **Entity**: `parse_dims`, **Line**: 42, **Description**: 1 blank line required between summary line and description (found 0)
- **Error Code**: **D400**, **File**: `torch/distributed/_tensor/ops/basic_strategy.py`, **Entity**: `parse_dims`, **Line**: 42, **Description**: First line should end with a period (not 's')
- **Error Code**: **D200**, **File**: `torch/distributed/_tensor/ops/basic_strategy.py`, **Entity**: `gen_einsum_strategies`, **Line**: 94, **Description**: One-line docstring should fit on one line with quotes (found 3)

cc @carljparker